diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2022-01-24 17:28:33 +0100 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2022-01-24 17:29:37 +0100 |
commit | 03dc8bfbc809b43b91b4ecb8f481be1ce2644d66 (patch) | |
tree | b9f69cdb9da160293a6d1fc095e13a8a4e22296e /numpy/lib/arraysetops.pyi | |
parent | 3fbe9852265220c77d8808210539b736be75c8c1 (diff) | |
download | numpy-03dc8bfbc809b43b91b4ecb8f481be1ce2644d66.tar.gz |
MAINT: Create the `_ArrayLike` type-alias in `numpy.typing`
Represents a subset of `npt.ArrayLike` that can be parametrized w.r.t. `np.generic`
Diffstat (limited to 'numpy/lib/arraysetops.pyi')
-rw-r--r-- | numpy/lib/arraysetops.pyi | 6 |
1 files changed, 1 insertions, 5 deletions
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 |