Skip to content

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

Merged
charris merged 2 commits into
numpy:mainfrom
jorenham:typing/mypy-19171
May 30, 2025
Merged

charris merged 2 commits into
numpy:mainfrom
jorenham:typing/mypy-19171

Conversation

@jorenham

@jorenham jorenham commented May 30, 2025 •

Copy link
Copy Markdown
Member

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
@charris

charris commented May 30, 2025

Copy link
Copy Markdown
Member

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