summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.pyi
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2022-01-24 17:28:33 +0100
committerBas van Beek <b.f.van.beek@vu.nl>2022-01-24 17:29:37 +0100
commit03dc8bfbc809b43b91b4ecb8f481be1ce2644d66 (patch)
treeb9f69cdb9da160293a6d1fc095e13a8a4e22296e /numpy/lib/function_base.pyi
parent3fbe9852265220c77d8808210539b736be75c8c1 (diff)
downloadnumpy-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/function_base.pyi')
-rw-r--r--numpy/lib/function_base.pyi5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/lib/function_base.pyi b/numpy/lib/function_base.pyi
index d99672169..bba4c0297 100644
--- a/numpy/lib/function_base.pyi
+++ b/numpy/lib/function_base.pyi
@@ -18,7 +18,6 @@ else:
from numpy import (
vectorize as vectorize,
ufunc,
- dtype,
generic,
floating,
complexfloating,
@@ -38,8 +37,7 @@ from numpy.typing import (
_ShapeLike,
_ScalarLike_co,
_DTypeLike,
- _FiniteNestedSequence,
- _SupportsArray,
+ _ArrayLike,
_ArrayLikeInt_co,
_ArrayLikeFloat_co,
_ArrayLikeComplex_co,
@@ -67,7 +65,6 @@ _SCT = TypeVar("_SCT", bound=generic)
_ArrayType = TypeVar("_ArrayType", bound=NDArray[Any])
_2Tuple = tuple[_T, _T]
-_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]]
class _TrimZerosSequence(Protocol[_T_co]):
def __len__(self) -> int: ...