MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / _get_module

Method _get_module

diffusers/src/diffusers/utils/import_utils.py:837–844  ·  view source on GitHub ↗
(self, module_name: str)

Source from the content-addressed store, hash-verified

835 return value
836
837 def _get_module(self, module_name: str):
838 try:
839 return importlib.import_module("." + module_name, self.__name__)
840 except Exception as e:
841 raise RuntimeError(
842 f"Failed to import {self.__name__}.{module_name} because of the following error (look up to see its"
843 f" traceback):\n{e}"
844 ) from e
845
846 def __reduce__(self):
847 return (self.__class__, (self._name, self.__file__, self._import_structure))

Callers 1

__getattr__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected