Skip to content

Commit

Permalink
Merge pull request numpy#23327 from hawkinsp/fftfreq
Browse files Browse the repository at this point in the history
TYP: Mark `d` argument to fftfreq and rfftfreq as optional in type stubs
  • Loading branch information
BvB93 authored Mar 5, 2023
2 parents 857c64a + 768a27f commit 02ef9c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions numpy/fft/helper.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]]: ...

0 comments on commit 02ef9c0

Please sign in to comment.