utils
ModulePrivateSource
Extensions of the Python STL. Currently this module provides:
- lazy_import: Lazy import of a Python module. It allows nested imports, i.e. a lazy-imported module containing other lazy-imported modules.
Classes
Member | |
---|---|
ModuleReplaceError | Exception raised when replacing an existing lazy module. |
Functions
Member | |
---|---|
cancel_type | Remove the typehint of a value with a known type. |
lazy_import | Perform the lazy import for a module. |
get_lazy_attribute | Get an attribute of a lazy module. |
is_module_invalid | Check whether a lazy module is invalid. |