diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2020-10-07 18:53:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 19:53:33 +0300 |
commit | fd01786ea4c7dde540cede258ad11d08d25bacfc (patch) | |
tree | 6601706476da64b117088d6bbe368bc18521cb53 /numpy/typing/_callable.py | |
parent | 2378c3c987c479cca27470d3d66b5d50e91ad673 (diff) | |
download | numpy-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/_callable.py')
-rw-r--r-- | numpy/typing/_callable.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/numpy/typing/_callable.py b/numpy/typing/_callable.py index 5e14b708f..0d876ae8d 100644 --- a/numpy/typing/_callable.py +++ b/numpy/typing/_callable.py @@ -12,11 +12,6 @@ import sys from typing import Union, TypeVar, overload, Any from numpy import ( - _BoolLike, - _IntLike, - _FloatLike, - _ComplexLike, - _NumberLike, generic, bool_, timedelta64, @@ -32,6 +27,13 @@ from numpy import ( complexfloating, complex128, ) +from ._scalars import ( + _BoolLike, + _IntLike, + _FloatLike, + _ComplexLike, + _NumberLike, +) if sys.version_info >= (3, 8): from typing import Protocol |