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