Skip to content

TYP: Mark d argument to fftfreq and rfftfreq as optional in type stubs#23327

Merged
BvB93 merged 1 commit intonumpy:mainfrom
hawkinsp:fftfreq
Mar 5, 2023
Merged

TYP: Mark d argument to fftfreq and rfftfreq as optional in type stubs#23327
BvB93 merged 1 commit intonumpy:mainfrom
hawkinsp:fftfreq

Conversation

@hawkinsp
Copy link
Copy Markdown
Contributor

@hawkinsp hawkinsp commented Mar 3, 2023

The type stubs incorrectly mark this argument as mandatory. It has a default argument, per the docs: https://numpy.org/doc/stable/reference/generated/numpy.fft.fftfreq.html
https://numpy.org/doc/stable/reference/generated/numpy.fft.rfftfreq.html

The type stubs incorrectly mark this argument as mandatory.
@hawkinsp hawkinsp changed the title BUG: Mark d argument to fftfreq and rfftfreq as optional in type stubs TYP: Mark d argument to fftfreq and rfftfreq as optional in type stubs Mar 3, 2023
@BvB93
Copy link
Copy Markdown
Member

BvB93 commented Mar 5, 2023

Yup, good catch! Thanks @hawkinsp

@BvB93 BvB93 merged commit 02ef9c0 into numpy:main Mar 5, 2023
@BvB93 BvB93 added the 09 - Backport-Candidate PRs tagged should be backported label Mar 5, 2023
@charris charris changed the title TYP: Mark d argument to fftfreq and rfftfreq as optional in type stubs TYP: Mark d argument to fftfreq and rfftfreq as optional in type stubs Mar 5, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants