summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/multiarray.pyi5
-rw-r--r--numpy/core/numeric.pyi5
-rw-r--r--numpy/core/shape_base.pyi6
3 files changed, 4 insertions, 12 deletions
diff --git a/numpy/core/multiarray.pyi b/numpy/core/multiarray.pyi
index 21af904b9..5e924c2f4 100644
--- a/numpy/core/multiarray.pyi
+++ b/numpy/core/multiarray.pyi
@@ -58,10 +58,9 @@ from numpy.typing import (
# Arrays
NDArray,
ArrayLike,
- _SupportsArray,
+ _ArrayLike,
_SupportsArrayFunc,
_NestedSequence,
- _FiniteNestedSequence,
_ArrayLikeBool_co,
_ArrayLikeUInt_co,
_ArrayLikeInt_co,
@@ -81,8 +80,6 @@ from numpy.typing import (
_SCT = TypeVar("_SCT", bound=generic)
_ArrayType = TypeVar("_ArrayType", bound=NDArray[Any])
-_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]]
-
# Valid time units
_UnitKind = L[
"Y",
diff --git a/numpy/core/numeric.pyi b/numpy/core/numeric.pyi
index 367a2bff8..796f30304 100644
--- a/numpy/core/numeric.pyi
+++ b/numpy/core/numeric.pyi
@@ -12,7 +12,6 @@ from typing_extensions import TypeGuard
from numpy import (
ComplexWarning as ComplexWarning,
- dtype,
generic,
unsignedinteger,
signedinteger,
@@ -34,8 +33,7 @@ from numpy.typing import (
DTypeLike,
_ShapeLike,
_DTypeLike,
- _FiniteNestedSequence,
- _SupportsArray,
+ _ArrayLike,
_SupportsArrayFunc,
_ScalarLike_co,
_ArrayLikeBool_co,
@@ -51,7 +49,6 @@ _T = TypeVar("_T")
_SCT = TypeVar("_SCT", bound=generic)
_ArrayType = TypeVar("_ArrayType", bound=NDArray[Any])
-_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]]
_CorrelateMode = Literal["valid", "same", "full"]
__all__: list[str]
diff --git a/numpy/core/shape_base.pyi b/numpy/core/shape_base.pyi
index 63cbd773c..e2cf26075 100644
--- a/numpy/core/shape_base.pyi
+++ b/numpy/core/shape_base.pyi
@@ -1,14 +1,12 @@
from collections.abc import Sequence
from typing import TypeVar, overload, Any, SupportsIndex
-from numpy import generic, dtype
-from numpy.typing import ArrayLike, NDArray, _FiniteNestedSequence, _SupportsArray
+from numpy import generic
+from numpy.typing import ArrayLike, NDArray, _ArrayLike
_SCT = TypeVar("_SCT", bound=generic)
_ArrayType = TypeVar("_ArrayType", bound=NDArray[Any])
-_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]]
-
__all__: list[str]
@overload