From 03dc8bfbc809b43b91b4ecb8f481be1ce2644d66 Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Mon, 24 Jan 2022 17:28:33 +0100 Subject: MAINT: Create the `_ArrayLike` type-alias in `numpy.typing` Represents a subset of `npt.ArrayLike` that can be parametrized w.r.t. `np.generic` --- numpy/core/numeric.pyi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'numpy/core/numeric.pyi') 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] -- cgit v1.2.1