titus.P.Pattern

class titus.P.Pattern[source]

Bases: object

Trait for a type pattern.

A type pattern is something that a titus.datatype.AvroType is matched against when determining if a PFA function signature can be applied to a given set of arguments.

It could be as simple as the type itself (e.g. P.Int() matches AvroInt()) or it could be a complex wildcard.