Skip to content

TYP: isin shape-typing - #32262

Merged
charris merged 1 commit into
numpy:mainfrom
jorenham:typing/isin/shape-typing
Aug 12, 2026
Merged

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

Conversation

@jorenham

Copy link
Copy Markdown
Member

np.isin is shape-preserving, so this was pretty easy.


Fully written by me, pre-reviewed and audited by AI (see https://gist.github.com/jorenham/36c78602a7ca866ddb2a917de48ccdd0).

@jorenham jorenham added this to the 2.6.0 Release milestone Aug 12, 2026
@github-actions

Copy link
Copy Markdown

Diff from mypy_primer, showing the effect of this PR on type check results on a corpus of open source code:

optuna (https://github.com/optuna/optuna)
  ./optuna/study/_multi_objective.py:182: error: INTERNAL ERROR -- Please try using mypy master on GitHub:

@charris
charris merged commit c4b1e31 into numpy:main Aug 12, 2026
15 checks passed
@charris

charris commented Aug 12, 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