Skip to content

TYP: argpartition shape-typing#30484

Merged
charris merged 1 commit into
numpy:mainfrom
jorenham:typing/argpartition
Dec 19, 2025
Merged

TYP: argpartition shape-typing#30484
charris merged 1 commit into
numpy:mainfrom
jorenham:typing/argpartition

Conversation

@jorenham
Copy link
Copy Markdown
Member

@jorenham jorenham commented Dec 19, 2025

This adds shape-typing support to

  • np.argpartition
  • np.ndarray.argpartition
  • np.ma.masked_array.argpartition

and syncs np.argpartition with np.ndarray.argpartition so that np.argpartition will now also reject passing an order argument for non-void arrays.

@jorenham jorenham added this to the 2.5.0 Release milestone Dec 19, 2025
@charris charris merged commit 67fc5c3 into numpy:main Dec 19, 2025
14 checks passed
@charris
Copy link
Copy Markdown
Member

charris commented Dec 19, 2025

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