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/lib/arraysetops.pyi | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'numpy/lib/arraysetops.pyi') diff --git a/numpy/lib/arraysetops.pyi b/numpy/lib/arraysetops.pyi index e7e230bf1..c3c759d5b 100644 --- a/numpy/lib/arraysetops.pyi +++ b/numpy/lib/arraysetops.pyi @@ -7,7 +7,6 @@ from typing import ( ) from numpy import ( - dtype, generic, number, bool_, @@ -41,8 +40,7 @@ from numpy import ( from numpy.typing import ( ArrayLike, NDArray, - _FiniteNestedSequence, - _SupportsArray, + _ArrayLike, _ArrayLikeBool_co, _ArrayLikeDT64_co, _ArrayLikeTD64_co, @@ -87,8 +85,6 @@ _SCTNoCast = TypeVar( void, ) -_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]] - __all__: list[str] @overload -- cgit v1.2.1