(name)
| 119 | __all__ = list(itertools.chain(*__modules_all__.values())) |
| 120 | |
| 121 | def __getattr__(name): |
| 122 | try: |
| 123 | return globals()[name] |
| 124 | except KeyError: |
| 125 | pass |
| 126 | |
| 127 | try: |
| 128 | module_name = next(m for m in __modules_all__ if name in __modules_all__[m]) |
| 129 | except StopIteration: |
| 130 | raise AttributeError(f"module '{__name__}' has no attribute '{name}'") |
| 131 | module = importlib.import_module(f'.{module_name}', __name__) |
| 132 | for key in __modules_all__[module_name]: |
| 133 | globals()[key] = getattr(module, key) |
| 134 | |
| 135 | return globals()[name] |
| 136 | |
| 137 | |
| 138 | if TYPE_CHECKING: |
nothing calls this directly
no outgoing calls
no test coverage detected