Skip to content

TYP: expand_dims improved shape-typing - #32362

Merged
charris merged 1 commit into
numpy:mainfrom
jorenham:typing/expand_dims/improved-shape-typing
Aug 20, 2026
Merged

charris merged 1 commit into
numpy:mainfrom
jorenham:typing/expand_dims/improved-shape-typing

Conversation

@jorenham

@jorenham jorenham commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

The shape-typing support added to expand_dims in #31220 only went up to <=2+2d. This expands the expand_dims dims so that it goes up to <=4+2d now.


Purely mechanical, so I had AI do most of this.

@jorenham jorenham added this to the 2.6.0 Release milestone Aug 20, 2026
@charris
charris merged commit ba836a5 into numpy:main Aug 20, 2026
15 checks passed
@charris

charris commented Aug 20, 2026

Copy link
Copy Markdown
Member

Thanks Joren.

@jorenham
jorenham deleted the typing/expand_dims/improved-shape-typing branch August 20, 2026 16:06
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