voxcity.utils.lazy¶
Lazy third-party module loading built on importlib.util.LazyLoader.
Functions¶
|
Return module |
Module Contents¶
- voxcity.utils.lazy.lazy_import(name: str)[source]¶
Return module
namewithout executing it until first attribute access.Already-imported modules are returned as-is. A missing module raises
ModuleNotFoundErrorimmediately at the call site, so optional dependencies still fail with a clear error where they are declared.