DeferredImportModule
(class from pyomo.common.dependencies)
- class pyomo.common.dependencies.DeferredImportModule(indicator, deferred_submodules, submodule_name)[source]
Bases:
objectMock module object to support the deferred import of a module.
This object is returned by
attempt_import()in lieu of the module whenattempt_import()is called withdefer_import=True. Any attempts to access attributes on this object will trigger the actual module import and return either the appropriate module attribute or else if the module import fails, raise aDeferredImportErrorexception.Methods
__init__(indicator, deferred_submodules, ...)mro()Return a type's method resolution order.
Member Documentation