diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-11-22 14:15:31 +0100 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-11-22 14:40:15 +0100 |
commit | 99fee43fbf7e696fb86b7f5ddee64caeea0bda0d (patch) | |
tree | 50fd82762fb40c764f3430167e0cc81a374172e6 /numpy/lib/shape_base.pyi | |
parent | 0e9b464df4720028ef8739bf75ce5a44137a0bb7 (diff) | |
download | numpy-99fee43fbf7e696fb86b7f5ddee64caeea0bda0d.tar.gz |
BUG: Fix an incorrect protocol used in `np.lib.shape_base`
Diffstat (limited to 'numpy/lib/shape_base.pyi')
-rw-r--r-- | numpy/lib/shape_base.pyi | 4 |
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 |