DeferredImportModule

(class from pyomo.common.dependencies)

class pyomo.common.dependencies.DeferredImportModule(indicator, deferred_submodules, submodule_name)[source]

Bases: object

Mock module object to support the deferred import of a module.

This object is returned by attempt_import() in lieu of the module when attempt_import() is called with defer_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 a DeferredImportError exception.

__init__(indicator, deferred_submodules, submodule_name)[source]

Methods

__init__(indicator, deferred_submodules, ...)

mro()

Return a type's method resolution order.

Member Documentation

mro()[source]

Return a type’s method resolution order.