Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
exceptions.pyi28 linesDownload Raw Back to numpy
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 
codekingpro/portable-devtools · Team Ai