Skip to content

TYP: apply_over_axes shape-typing - #32729

Merged
charris merged 1 commit into
numpy:mainfrom
jorenham:typing/apply_over_axes/shape-typing
Sep 22, 2026
Merged

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

Conversation

@jorenham

Copy link
Copy Markdown
Member

np.apply_over_axes now propagates the shape-type of the function's returned array (or scalar), and narrows the a type so that it no longer accepts non-array types that runtime rejects.


Pair programmed with AI.

@jorenham jorenham added this to the 2.6.0 Release milestone Sep 21, 2026
@charris

charris commented Sep 22, 2026

Copy link
Copy Markdown
Member

Needs rebase.

@jorenham
jorenham force-pushed the typing/apply_over_axes/shape-typing branch from 6f470f8 to 53b4bfe Compare September 22, 2026 18:46
@charris
charris merged commit 5aa800e into numpy:main Sep 22, 2026
15 checks passed
@charris

charris commented Sep 22, 2026

Copy link
Copy Markdown
Member

Thanks Joren.

@jorenham
jorenham deleted the typing/apply_over_axes/shape-typing branch September 22, 2026 22:07
Riaz1729 pushed a commit to Riaz1729/numpy that referenced this pull request Sep 23, 2026
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