|||
To be used when raising a TypeError
Example:
if isinstance(x, int): ... else: raise TypeError(type_error_msg(x, int)) # This will raise a TypeError with the message # 'Expected type (int,), got str: "foo"'
<Page contents
>Page contents:
type_error_msg()
Styled using the Piccolo Theme