diff options
author | Peter Hawkins <phawkins@google.com> | 2023-03-03 15:51:26 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2023-03-05 14:54:37 -0700 |
commit | 8d42c64b83a1f4043cda5aa0b74c50b3d530763a (patch) | |
tree | f7131c85aa913a17ceeef1ab80c2902f9bbd1ad6 | |
parent | 7df6543a3c0afb70e2a6be13d718d01979ad571f (diff) | |
download | numpy-8d42c64b83a1f4043cda5aa0b74c50b3d530763a.tar.gz |
Mark `d` argument to fftfreq and rfftfreq as optional in type stubs.
The type stubs incorrectly mark this argument as mandatory.
-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]]: ... |