titus.signature.LabelData

class titus.signature.LabelData[source]

Bases: object

Used internally to carry information about a label in a wildcard and how well it matches a prospective argument type.

__init__()
add(t)
static broadestType(candidates)

Compute the narrowest possible supertype of a set of types.

Parameters:candidates (list of titus.datatype.AvroType) – set of types for which to find the narrowest possible supertype
Return type:titus.datatype.AvroType
Returns:narrowest possible supertype, usually a union of the candidates
determineAssignment()
static distinctTypes(candidates, out=None)