(self)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected