import_object_helper¶
- sphinx_runpython.import_object_helper.import_any_object(docname: str, use_init: bool = True) Tuple[object, str, str] [source]¶
Extracts an object defined by its name including the module name.
- Parameters:
docname – full name of the object
use_init – return the constructor instead of the class
- Returns:
tuple(object, name, kind)
- Raises:
ImportError if unable to import
Kind is among
'function'
or'class'
or'kind'
.