summaryrefslogtreecommitdiff
path: root/numpy/fft
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/fft
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/fft')
-rw-r--r--numpy/fft/helper.pyi7
1 files changed, 2 insertions, 5 deletions
diff --git a/numpy/fft/helper.pyi b/numpy/fft/helper.pyi
index a7f3bdf51..5a1565858 100644
--- a/numpy/fft/helper.pyi
+++ b/numpy/fft/helper.pyi
@@ -1,20 +1,17 @@
from typing import Any, TypeVar, overload
-from numpy import generic, dtype, integer, floating, complexfloating
+from numpy import generic, integer, floating, complexfloating
from numpy.typing import (
NDArray,
ArrayLike,
_ShapeLike,
- _SupportsArray,
- _FiniteNestedSequence,
+ _ArrayLike,
_ArrayLikeFloat_co,
_ArrayLikeComplex_co,
)
_SCT = TypeVar("_SCT", bound=generic)
-_ArrayLike = _FiniteNestedSequence[_SupportsArray[dtype[_SCT]]]
-
__all__: list[str]
@overload