diff options
author | Peter Hawkins <phawkins@google.com> | 2023-03-03 15:51:26 +0000 |
---|---|---|
committer | Peter Hawkins <phawkins@google.com> | 2023-03-03 15:51:26 +0000 |
commit | 768a27f7ca61ead70f1b62aa2da84fdac5e12897 (patch) | |
tree | 93081d28845e6887fd5596edb1ea733b0e5a5f6c /numpy/fft | |
parent | 0f759540e8f6ac212bf5644666ec0b5b349960c0 (diff) | |
download | numpy-768a27f7ca61ead70f1b62aa2da84fdac5e12897.tar.gz |
Mark `d` argument to fftfreq and rfftfreq as optional in type stubs.
The type stubs incorrectly mark this argument as mandatory.
Diffstat (limited to 'numpy/fft')
-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]]: ... |