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 objects

This importlib.abc.Loader loader wraps a regular loader and automatically resolves the registered DeferredImportIndicator 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