summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-11-22 11:32:05 -0700
committerGitHub <noreply@github.com>2021-11-22 11:32:05 -0700
commitf8e87f8d5892dd5fe11ddd05470ae83a0104d417 (patch)
treeb40c7269b0ba7b278fc0a35c951f92ab614ca537 /numpy/lib
parent4a8007d5d916126965e811cd1b41ff4de44663b3 (diff)
parent99fee43fbf7e696fb86b7f5ddee64caeea0bda0d (diff)
downloadnumpy-f8e87f8d5892dd5fe11ddd05470ae83a0104d417.tar.gz
Merge pull request #20433 from BvB93/122_typing
BUG: Fix an incorrect protocol used in `np.lib.shape_base`
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/shape_base.pyi4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/shape_base.pyi b/numpy/lib/shape_base.pyi
index 8aa283d02..17016c999 100644
--- a/numpy/lib/shape_base.pyi
+++ b/numpy/lib/shape_base.pyi
@@ -18,7 +18,7 @@ from numpy.typing import (
NDArray,
_ShapeLike,
_FiniteNestedSequence,
- _SupportsDType,
+ _SupportsArray,
_ArrayLikeBool_co,
_ArrayLikeUInt_co,
_ArrayLikeInt_co,
@@ -31,7 +31,7 @@ from numpy.core.shape_base import vstack
_SCT = TypeVar("_SCT", bound=generic)
-_ArrayLike = _FiniteNestedSequence[_SupportsDType[dtype[_SCT]]]
+_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]]
# The signatures of `__array_wrap__` and `__array_prepare__` are the same;
# give them unique names for the sake of clarity