Skip to content

TYP: fix NDArray[integer] inplace operator mypy issue #29092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025

Conversation

jorenham
Copy link
Member

@jorenham jorenham commented May 30, 2025

fixes python/mypy#19171


Note that this does not affect the return type; this just broadens the input (self) type.

The unsignedinteger overloads could be removed because _ArrayLikeInt_co already covers the array-likes of integer or bool.

@charris charris merged commit e699298 into numpy:main May 30, 2025
76 checks passed
@charris
Copy link
Member

charris commented May 30, 2025

Thanks Joren.

@jorenham jorenham deleted the typing/mypy-19171 branch May 30, 2025 21:47
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label May 31, 2025
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.

"Invalid self argument" for numpy's iadd
2 participants