exceptions.pyi 600 B

123456789101112131415161718
  1. from typing import overload
  2. __all__: list[str]
  3. class ComplexWarning(RuntimeWarning): ...
  4. class ModuleDeprecationWarning(DeprecationWarning): ...
  5. class VisibleDeprecationWarning(UserWarning): ...
  6. class TooHardError(RuntimeError): ...
  7. class DTypePromotionError(TypeError): ...
  8. class AxisError(ValueError, IndexError):
  9. axis: None | int
  10. ndim: None | int
  11. @overload
  12. def __init__(self, axis: str, ndim: None = ..., msg_prefix: None = ...) -> None: ...
  13. @overload
  14. def __init__(self, axis: int, ndim: int, msg_prefix: None | str = ...) -> None: ...
  15. def __str__(self) -> str: ...