summaryrefslogtreecommitdiff
path: root/numpy/typing/__init__.py
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2020-10-07 18:53:33 +0200
committerGitHub <noreply@github.com>2020-10-07 19:53:33 +0300
commitfd01786ea4c7dde540cede258ad11d08d25bacfc (patch)
tree6601706476da64b117088d6bbe368bc18521cb53 /numpy/typing/__init__.py
parent2378c3c987c479cca27470d3d66b5d50e91ad673 (diff)
downloadnumpy-fd01786ea4c7dde540cede258ad11d08d25bacfc.tar.gz
MAINT: Move aliases for common scalar unions to `numpy.typing` (#17429)
* MAINT: Move the `<scalar>Like` unions to `numpy.typing`
Diffstat (limited to 'numpy/typing/__init__.py')
-rw-r--r--numpy/typing/__init__.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/numpy/typing/__init__.py b/numpy/typing/__init__.py
index 86fd5e787..987aa39aa 100644
--- a/numpy/typing/__init__.py
+++ b/numpy/typing/__init__.py
@@ -90,6 +90,16 @@ since its usage is discouraged.
Please see : https://numpy.org/devdocs/reference/arrays.dtypes.html
"""
+from ._scalars import (
+ _CharLike,
+ _BoolLike,
+ _IntLike,
+ _FloatLike,
+ _ComplexLike,
+ _NumberLike,
+ _ScalarLike,
+ _VoidLike,
+)
from ._array_like import _SupportsArray, ArrayLike
from ._shape import _Shape, _ShapeLike
from ._dtype_like import DtypeLike
@@ -97,4 +107,3 @@ from ._dtype_like import DtypeLike
from numpy._pytesttester import PytestTester
test = PytestTester(__name__)
del PytestTester
-