summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2023-03-05 18:59:40 -0500
committerGitHub <noreply@github.com>2023-03-05 18:59:40 -0500
commit9c610472284969241313b69e5648a075b7e9e8ab (patch)
tree08cdbce19b102b9132a78b3becf3448c9fe02e42
parentc6318857085782b8a606de12b661a336988c4489 (diff)
parent8d42c64b83a1f4043cda5aa0b74c50b3d530763a (diff)
downloadnumpy-9c610472284969241313b69e5648a075b7e9e8ab.tar.gz
Merge pull request #23343 from charris/backport-23327
TYP: Mark ``d`` argument to fftfreq and rfftfreq as optional in type stubs.
-rw-r--r--numpy/fft/helper.pyi8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/fft/helper.pyi b/numpy/fft/helper.pyi
index b49fc88f7..9b6525190 100644
--- a/numpy/fft/helper.pyi
+++ b/numpy/fft/helper.pyi
@@ -27,21 +27,21 @@ def ifftshift(x: ArrayLike, axes: None | _ShapeLike = ...) -> NDArray[Any]: ...
@overload
def fftfreq(
n: int | integer[Any],
- d: _ArrayLikeFloat_co,
+ d: _ArrayLikeFloat_co = ...,
) -> NDArray[floating[Any]]: ...
@overload
def fftfreq(
n: int | integer[Any],
- d: _ArrayLikeComplex_co,
+ d: _ArrayLikeComplex_co = ...,
) -> NDArray[complexfloating[Any, Any]]: ...
@overload
def rfftfreq(
n: int | integer[Any],
- d: _ArrayLikeFloat_co,
+ d: _ArrayLikeFloat_co = ...,
) -> NDArray[floating[Any]]: ...
@overload
def rfftfreq(
n: int | integer[Any],
- d: _ArrayLikeComplex_co,
+ d: _ArrayLikeComplex_co = ...,
) -> NDArray[complexfloating[Any, Any]]: ...