-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Closed
Description
A number of constants are present in the main numpy namespace, however their annotations
are currently not marked as such.
TODO
- Mark constants (see below) with
typing.Final. For example,Inf: floatshould becomeInf: Final[float].
Note thatFinalwas introduced to the builtintypingmodule in python 3.8; for older versions it'll have to be imported fromtyping_extensions.
Lines 1600 to 1641 in 29c58e6
| Inf: float | |
| Infinity: float | |
| NAN: float | |
| NINF: float | |
| NZERO: float | |
| NaN: float | |
| PINF: float | |
| PZERO: float | |
| e: float | |
| euler_gamma: float | |
| inf: float | |
| infty: float | |
| nan: float | |
| pi: float | |
| ALLOW_THREADS: int | |
| BUFSIZE: int | |
| CLIP: int | |
| ERR_CALL: int | |
| ERR_DEFAULT: int | |
| ERR_IGNORE: int | |
| ERR_LOG: int | |
| ERR_PRINT: int | |
| ERR_RAISE: int | |
| ERR_WARN: int | |
| FLOATING_POINT_SUPPORT: int | |
| FPE_DIVIDEBYZERO: int | |
| FPE_INVALID: int | |
| FPE_OVERFLOW: int | |
| FPE_UNDERFLOW: int | |
| MAXDIMS: int | |
| MAY_SHARE_BOUNDS: int | |
| MAY_SHARE_EXACT: int | |
| RAISE: int | |
| SHIFT_DIVIDEBYZERO: int | |
| SHIFT_INVALID: int | |
| SHIFT_OVERFLOW: int | |
| SHIFT_UNDERFLOW: int | |
| UFUNC_BUFSIZE_DEFAULT: int | |
| WRAP: int | |
| little_endian: int | |
| tracemalloc_domain: int |
Reactions are currently unavailable