titus.P.Wildcard

class titus.P.Wildcard(label, oneOf=None)[source]

Bases: titus.P.Pattern

Matches any titus.datatype.AvroType or one of a restricted set.

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, oneOf=None)
Parameters:
  • label (string) – label letter (usually one character long, but in principle an arbitrary string)
  • oneOf (list of titus.datatype.AvroType or None) – allowed types or None for unrestricted
label
oneOf