extract_parent_type#

maize.utilities.utilities.extract_parent_type(owner: Any, name: str) Any[source]#

Extract type annotations from a owning class.

Parameters:
  • owner – Parent object with annotations in the form of x: str = ...

  • name – Name of the variable

Returns:

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

Return type:

Any