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

Method __dir__

diffusers/src/diffusers/utils/import_utils.py:814–821  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

812
813 # Needed for autocompletion in an IDE
814 def __dir__(self):
815 result = super().__dir__()
816 # The elements of self.__all__ that are submodules may or may not be in the dir already, depending on whether
817 # they have been accessed or not. So we only add the elements of self.__all__ that are not already in the dir.
818 for attr in self.__all__:
819 if attr not in result:
820 result.append(attr)
821 return result
822
823 def __getattr__(self, name: str) -> Any:
824 if name in self._objects:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected