diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-03-18 17:09:56 +0100 |
---|---|---|
committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-03-18 18:29:54 +0100 |
commit | 7739583f5fb39c31e83010a3153fa078004e55eb (patch) | |
tree | 23435d5de3f1870bc664354d50524b7166c2587a /numpy/_typing/_nbit.py | |
parent | a8f9711493adee93fa3d61e7ef1bee11d7055a85 (diff) | |
download | numpy-7739583f5fb39c31e83010a3153fa078004e55eb.tar.gz |
MAINT: Split `numpy.typing` into a public and private component
i.e. `numpy.typing` and `numpy._typing`
Diffstat (limited to 'numpy/_typing/_nbit.py')
-rw-r--r-- | numpy/_typing/_nbit.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/numpy/_typing/_nbit.py b/numpy/_typing/_nbit.py new file mode 100644 index 000000000..b8d35db4f --- /dev/null +++ b/numpy/_typing/_nbit.py @@ -0,0 +1,16 @@ +"""A module with the precisions of platform-specific `~numpy.number`s.""" + +from typing import Any + +# To-be replaced with a `npt.NBitBase` subclass by numpy's mypy plugin +_NBitByte = Any +_NBitShort = Any +_NBitIntC = Any +_NBitIntP = Any +_NBitInt = Any +_NBitLongLong = Any + +_NBitHalf = Any +_NBitSingle = Any +_NBitDouble = Any +_NBitLongDouble = Any |