titus.P.Enum

class titus.P.Enum(symbols, fullName=None)[source]

Bases: titus.P.Pattern

Matches titus.datatype.AvroEnum with a given symbols and an optional name.

Note: not used for any PFA patterns, and probably shouldn’t be, even in the future. titus.P.WildEnum is used instead.

__init__(symbols, fullName=None)
Parameters:
  • symbols (list of strings) – names of the enum symbols
  • fullName (string or None) – optional name of the enum pattern (if not provided, enum types of any name would match)
fullName
symbols