Skip to content

TYP: fft.[i]fftshift shape-typing#31225

Merged
charris merged 1 commit intonumpy:mainfrom
jorenham:typing/fft.fftshift
Apr 12, 2026
Merged

TYP: fft.[i]fftshift shape-typing#31225
charris merged 1 commit intonumpy:mainfrom
jorenham:typing/fft.fftshift

Conversation

@jorenham
Copy link
Copy Markdown
Member

np.fft.fftshift and np.fft.ifftshift retain shapes (but not ndarray subtype), which makes this pretty straighforward.

AI Disclosure

N/A

@jorenham jorenham added this to the 2.5.0 Release milestone Apr 12, 2026
@charris charris merged commit 3cd33b1 into numpy:main Apr 12, 2026
15 checks passed
@jorenham jorenham deleted the typing/fft.fftshift branch April 12, 2026 15:50
@charris
Copy link
Copy Markdown
Member

charris commented Apr 12, 2026

Thanks Joren. I am a bit curious why float16 was there in the first place.

@jorenham
Copy link
Copy Markdown
Member Author

I am a bit curious why float16 was there in the first place.

Yea, I was wondering that myself 🤔

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