(name: str)
| 902 | # Note: module __getattr__ only works on Python>=3.7. Unfortunately |
| 903 | # we can't provide this deprecation warning on Python 3.6. |
| 904 | def __getattr__(name: str) -> object: |
| 905 | if name == "Instance": |
| 906 | warnings.warn(INSTANCE_COLLECTOR, 2) |
| 907 | return InstanceDummy |
| 908 | raise AttributeError(f"module {__name__} has no attribute {name}") |
| 909 | |
| 910 | |
| 911 | def hasinit(obj: object) -> bool: |