summaryrefslogtreecommitdiff
path: root/numpy/typing/_callable.py
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-05-07 15:00:03 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2021-05-12 11:40:46 +0200
commit7c20796390be054dd294b80bae02be94ecfaa969 (patch)
tree7a755883248e288a519f625f9a7f1428c6949144 /numpy/typing/_callable.py
parentba760724b099ac30e85aa583c8cdbd5795927672 (diff)
downloadnumpy-7c20796390be054dd294b80bae02be94ecfaa969.tar.gz
MAINT: Replace `_ArrayND` with `NDArray`
Diffstat (limited to 'numpy/typing/_callable.py')
-rw-r--r--numpy/typing/_callable.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/typing/_callable.py b/numpy/typing/_callable.py
index 30c210b62..d9cb0f157 100644
--- a/numpy/typing/_callable.py
+++ b/numpy/typing/_callable.py
@@ -47,7 +47,8 @@ from ._scalars import (
_NumberLike_co,
)
from . import NBitBase
-from ._array_like import ArrayLike, _ArrayND
+from ._array_like import ArrayLike
+from ._generic_alias import NDArray
if sys.version_info >= (3, 8):
from typing import Protocol
@@ -336,7 +337,7 @@ if TYPE_CHECKING or HAVE_PROTOCOL:
@overload
def __call__(self, __other: _T1) -> bool_: ...
@overload
- def __call__(self, __other: _T2) -> _ArrayND[bool_]: ...
+ def __call__(self, __other: _T2) -> NDArray[bool_]: ...
else:
_BoolOp = Any