titus.P.mustBeAvro

titus.P.mustBeAvro(t)[source]

Raise a TypeError if a given titus.datatype.Type is not a titus.datatype.AvroType; otherwise, pass through.

Parameters:t (titus.datatype.Type) – type to check
Return type:titus.datatype.AvroType
Returns:the input t or raise an exception