diff options
Diffstat (limited to 'numpy/lib/shape_base.pyi')
| -rw-r--r-- | numpy/lib/shape_base.pyi | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/numpy/lib/shape_base.pyi b/numpy/lib/shape_base.pyi index 82702e67c..4c81462bb 100644 --- a/numpy/lib/shape_base.pyi +++ b/numpy/lib/shape_base.pyi @@ -4,7 +4,6 @@ from typing import TypeVar, Any, overload, SupportsIndex, Protocol from numpy import ( generic, integer, - dtype, ufunc, bool_, unsignedinteger, @@ -18,22 +17,19 @@ from numpy.typing import ( ArrayLike, NDArray, _ShapeLike, - _FiniteNestedSequence, - _SupportsArray, - _ArrayLikeBool_co, - _ArrayLikeUInt_co, - _ArrayLikeInt_co, - _ArrayLikeFloat_co, - _ArrayLikeComplex_co, - _ArrayLikeObject_co, + _ArrayLike, + _ArrayLikeBool_co, + _ArrayLikeUInt_co, + _ArrayLikeInt_co, + _ArrayLikeFloat_co, + _ArrayLikeComplex_co, + _ArrayLikeObject_co, ) from numpy.core.shape_base import vstack _SCT = TypeVar("_SCT", bound=generic) -_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 class _ArrayWrap(Protocol): |
