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/core/numeric.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/core/numeric.pyi')
-rw-r--r-- | numpy/core/numeric.pyi | 5 |
1 files changed, 1 insertions, 4 deletions
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] |