titus.util.ts

titus.util.ts(avroType)[source]

Create a human-readable type string of a type.

Note: if titus.util.TYPE_ERRORS_IN_PRETTYPFA is True, the type will be printed in PrettyPFA notation; otherwise, as a raw Avro schema.

Parameters:avroType (titus.datatype.AvroType) – type to print out
Return type:string
Returns:string representation of the type.