codekingpro/portable-devtools
115k
1from typing import overload
2
3__all__ = [
4 "ComplexWarning",
5 "VisibleDeprecationWarning",
6 "ModuleDeprecationWarning",
7 "TooHardError",
8 "AxisError",
9 "DTypePromotionError",
10]
11
12class ComplexWarning(RuntimeWarning): ...
13class ModuleDeprecationWarning(DeprecationWarning): ...
14class VisibleDeprecationWarning(UserWarning): ...
15class RankWarning(RuntimeWarning): ...
16class TooHardError(RuntimeError): ...
17class DTypePromotionError(TypeError): ...
18
19class AxisError(ValueError, IndexError):
20 __slots__ = "_msg", "axis", "ndim"
21
22 axis: int | None
23 ndim: int | None
24 @overload
25 def __init__(self, axis: str, ndim: None = None, msg_prefix: None = None) -> None: ...
26 @overload
27 def __init__(self, axis: int, ndim: int, msg_prefix: str | None = None) -> None: ...
28 