Skip to content

DOC: release notes for the latest shape-typing improvements#31172

Merged
charris merged 2 commits into
numpy:mainfrom
jorenham:typing/shape-typing-relnote
Apr 7, 2026
Merged

DOC: release notes for the latest shape-typing improvements#31172
charris merged 2 commits into
numpy:mainfrom
jorenham:typing/shape-typing-relnote

Conversation

@jorenham
Copy link
Copy Markdown
Member

@jorenham jorenham commented Apr 6, 2026

Here's the promised release note for the recent shape-typing improvements.

AI Disclosure

I had copilot (with Claude Opus 4.6 High) write this (in "ask" mode), and made some minor changes afterwards.

prompt

For the upcoming NumPy 2.5.0 release I have contributed a lot of shape-typing improvements in the numpy stubs. Write a .rst release note in the same style as #30208 and #30480 . Mention that shape-typing is currently a work-in-progress, so shape-typing support isn't yet complete. With "shape-typing" I mostly refer to the type of ndarray.shape, i.e. some tuple[int, ...] type, usually either tuple[Any, ...] (if unknown), tuple[int] (1d), tuple[int, ...] (2d), etc.

Full list of shape-typing PRs that should be summarized (not enumerated) like I've done before in #30208.

Keep it concise, don't use emdashes and other classic AI stuff, and instead use my writing style. Don't oversell it, and keep it light and not too formal.

@charris charris merged commit af6be5d into numpy:main Apr 7, 2026
6 checks passed
@charris
Copy link
Copy Markdown
Member

charris commented Apr 7, 2026

Thanks Joren. Might as well get this in although there are still some PRs outstanding.

@jorenham jorenham deleted the typing/shape-typing-relnote branch April 7, 2026 09:54
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