titus.P.EnumFields

class titus.P.EnumFields(label, wildRecord)[source]

Bases: titus.P.Pattern

Matches a titus.datatype.AvroEnum whose symbols match the fields of a given record

Label letters are shared across a signature (e.g. if two wildcards are both labeled “A”, then they both have to resolve to the same type).

__init__(label, wildRecord)
Parameters:
  • label (string) – label letter (usually one character long, but in principle an arbitrary string)
  • wildRecord (string) – label letter of the record (also a wildcard)
label
wildRecord