diff options
author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2023-03-05 18:14:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 18:14:31 +0100 |
commit | 02ef9c07ca7cc43617ba7b9db0c2185343d73650 (patch) | |
tree | 19b7b0f812180de5d5e1150f23e6b0c0c2535611 | |
parent | 857c64a95339bd937fbcc5398246fd2dcf78f3ab (diff) | |
parent | 768a27f7ca61ead70f1b62aa2da84fdac5e12897 (diff) | |
download | numpy-02ef9c07ca7cc43617ba7b9db0c2185343d73650.tar.gz |
Merge pull request #23327 from hawkinsp/fftfreq
TYP: Mark `d` argument to fftfreq and rfftfreq as optional in type stubs
-rw-r--r-- | numpy/fft/helper.pyi | 8 |
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]]: ... |