extract_type#

maize.utilities.utilities.extract_type(obj: Any) Any[source]#

Extract type annotations from an object or class.

Parameters:

obj – Object with type annotations in the form of Object[...]

Returns:

The annotated type, None if there wasn’t one found

Return type:

Any