Skip to content

TYP: fft.*fft, fft.*fftn and fft.*fft2 shape-typing and improved dtype support#31226

Merged
charris merged 13 commits intonumpy:mainfrom
jorenham:typing/fft._pocketfft
Apr 14, 2026
Merged

TYP: fft.*fft, fft.*fftn and fft.*fft2 shape-typing and improved dtype support#31226
charris merged 13 commits intonumpy:mainfrom
jorenham:typing/fft._pocketfft

Conversation

@jorenham
Copy link
Copy Markdown
Member

@jorenham jorenham commented Apr 12, 2026

This adds support for shape-typing and non-float64/complex128 dtypes to:

  • np.fft.fft
  • np.fft.ifft
  • np.fft.rfft
  • np.fft.irfft
  • np.fft.hfft
  • np.fft.ihfft
  • np.fft.fftn
  • np.fft.ifftn
  • np.fft.rfftn
  • np.fft.irfftn
  • np.fft.fft2
  • np.fft.ifft2
  • np.fft.rfft2
  • np.fft.irfft2

AI Disclosure

The release note was in part written by copilot (Claude Opus 4.6 - High)

@jorenham jorenham added component: numpy.fft 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes 41 - Static typing labels Apr 12, 2026
@jorenham jorenham added this to the 2.5.0 Release milestone Apr 12, 2026
@jorenham jorenham added component: numpy.fft 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes 41 - Static typing labels Apr 12, 2026
@jorenham jorenham changed the title TYP: fft.irfft2 shape-typing and improved dtype support TYP: fft.*fft* shape-typing and improved dtype support Apr 12, 2026
@jorenham jorenham changed the title TYP: fft.*fft* shape-typing and improved dtype support TYP: fft.*fft, fft.*fftn and fft.*fft2 shape-typing and improved dtype support Apr 12, 2026
@jorenham jorenham removed the 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes label Apr 12, 2026
@charris charris merged commit 4f74f0a into numpy:main Apr 14, 2026
14 checks passed
@charris
Copy link
Copy Markdown
Member

charris commented Apr 14, 2026

Thanks Joren.

@jorenham jorenham deleted the typing/fft._pocketfft branch April 15, 2026 07:42
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.

2 participants