summaryrefslogtreecommitdiff
path: root/numpy/core/getlimits.pyi
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2021-10-27 20:53:24 +0200
committerBas van Beek <43369155+BvB93@users.noreply.github.com>2021-10-27 20:56:27 +0200
commitcbc1d01d4260ff92fa9c3292d8dd67e6137a20fe (patch)
treebdff164c24ce37aad467b9f3a5098dda43b5b85e /numpy/core/getlimits.pyi
parent123da223cf0f7d0bc1f21ebe1d41fafa21640c52 (diff)
downloadnumpy-cbc1d01d4260ff92fa9c3292d8dd67e6137a20fe.tar.gz
DEP: Deprecate `finfo.machar`
Diffstat (limited to 'numpy/core/getlimits.pyi')
-rw-r--r--numpy/core/getlimits.pyi52
1 files changed, 1 insertions, 51 deletions
diff --git a/numpy/core/getlimits.pyi b/numpy/core/getlimits.pyi
index ca22e18f7..66d062995 100644
--- a/numpy/core/getlimits.pyi
+++ b/numpy/core/getlimits.pyi
@@ -1,58 +1,8 @@
-from typing import Any, Generic, List, Type, TypeVar
+from typing import List
from numpy import (
finfo as finfo,
iinfo as iinfo,
- floating,
- signedinteger,
)
-from numpy.typing import NBitBase, NDArray
-
-_NBit = TypeVar("_NBit", bound=NBitBase)
-
__all__: List[str]
-
-class MachArLike(Generic[_NBit]):
- def __init__(
- self,
- ftype: Type[floating[_NBit]],
- *,
- eps: floating[Any],
- epsneg: floating[Any],
- huge: floating[Any],
- tiny: floating[Any],
- ibeta: int,
- smallest_subnormal: None | floating[Any] = ...,
- # Expand `**kwargs` into keyword-only arguments
- machep: int,
- negep: int,
- minexp: int,
- maxexp: int,
- it: int,
- iexp: int,
- irnd: int,
- ngrd: int,
- ) -> None: ...
- @property
- def smallest_subnormal(self) -> NDArray[floating[_NBit]]: ...
- eps: NDArray[floating[_NBit]]
- epsilon: NDArray[floating[_NBit]]
- epsneg: NDArray[floating[_NBit]]
- huge: NDArray[floating[_NBit]]
- ibeta: signedinteger[_NBit]
- iexp: int
- irnd: int
- it: int
- machep: int
- maxexp: int
- minexp: int
- negep: int
- ngrd: int
- precision: int
- resolution: NDArray[floating[_NBit]]
- smallest_normal: NDArray[floating[_NBit]]
- tiny: NDArray[floating[_NBit]]
- title: str
- xmax: NDArray[floating[_NBit]]
- xmin: NDArray[floating[_NBit]]