titus.genpy.untagUnions

titus.genpy.untagUnions(nameExpr, nameType)[source]

Converts the {"type": value} form of a union to value.

Parameters:
  • nameExpr (dict) – maps from new variable names to expressions
  • nameType (string) – expected type as a JSON-encoded string
Return type:

type of value

Returns:

untagged object