DeferredImportCallbackLoader
(class from pyomo.common.dependencies
)
- class pyomo.common.dependencies.DeferredImportCallbackLoader(loader, deferred_indicators: List[DeferredImportIndicator])[source]
Bases:
object
Custom Loader to resolve registered
DeferredImportIndicator
objectsThis
importlib.abc.Loader
loader wraps a regular loader and automatically resolves the registeredDeferredImportIndicator
objects after the module is loaded.- __init__(loader, deferred_indicators: List[DeferredImportIndicator])[source]
Methods
__init__
(loader, deferred_indicators)create_module
(spec)exec_module
(module)load_module
(fullname)module_repr
(module)Member Documentation