(name)
| 604 | |
| 605 | |
| 606 | def __getattr__(name): |
| 607 | # Can't use the @_deprecated decorator as it would not work on `except AxisError` |
| 608 | if name == "AxisError": |
| 609 | warnings.warn( |
| 610 | "AxisError was deprecated after version 2021.10.0 and will be removed in a " |
| 611 | f"future release. Please use {typename(AxisError)} instead.", |
| 612 | category=FutureWarning, |
| 613 | stacklevel=2, |
| 614 | ) |
| 615 | return AxisError |
| 616 | else: |
| 617 | raise AttributeError(f"module {__name__} has no attribute {name}") |
nothing calls this directly
no test coverage detected