Skip to content

TYP: partition improved shape-typing and dtypes - #32635

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

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

Conversation

@jorenham

Copy link
Copy Markdown
Member

np.partition now returns exact shape-types when axis=None or otherwise for arrays with known shape-type or lists of python scalars. This also adds overloads for list input, and restricts the order param to void arrays (analogous to e.g. sort).


Pair programmed with AI.

@jorenham jorenham added this to the 2.6.0 Release milestone Sep 15, 2026
@charris
charris merged commit 1ff65f1 into numpy:main Sep 15, 2026
16 checks passed
@charris

charris commented Sep 15, 2026

Copy link
Copy Markdown
Member

Thanks Joren.

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