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/stride_tricks.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/stride_tricks.pyi')
-rw-r--r-- | numpy/lib/stride_tricks.pyi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/lib/stride_tricks.pyi b/numpy/lib/stride_tricks.pyi index e05a9f74c..84dcd12e7 100644 --- a/numpy/lib/stride_tricks.pyi +++ b/numpy/lib/stride_tricks.pyi @@ -1,18 +1,16 @@ from collections.abc import Iterable from typing import Any, TypeVar, overload, SupportsIndex -from numpy import dtype, generic +from numpy import generic from numpy.typing import ( NDArray, ArrayLike, _ShapeLike, _Shape, - _FiniteNestedSequence, - _SupportsArray, + _ArrayLike ) _SCT = TypeVar("_SCT", bound=generic) -_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]] __all__: list[str] |