MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / __dir__

Method __dir__

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

Source from the content-addressed store, hash-verified

691
692 # Needed for autocompletion in an IDE
693 def __dir__(self):
694 result = super().__dir__()
695 # The elements of self.__all__ that are submodules may or may not be in the dir already, depending on whether
696 # they have been accessed or not. So we only add the elements of self.__all__ that are not already in the dir.
697 for attr in self.__all__:
698 if attr not in result:
699 result.append(attr)
700 return result
701
702 def __getattr__(self, name: str) -> Any:
703 if name in self._objects:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected