Skip to content

TYP: Add type annotations for comparison operators to MaskedArray.#23344

Merged
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-23328
Mar 6, 2023
Merged

TYP: Add type annotations for comparison operators to MaskedArray.#23344
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-23328

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Mar 5, 2023

Backport of #23328.

The comparison operators seem to be missing annotations; whereas pretty much every other operator is annotated.

This causes pytype to conclude that the output of, say, __gt__ is a regular ndarray, which isn't true.

The comparison operators seem to be missing annotations; whereas pretty
much every other operator is annotated.

This causes pytype to conclude that the output of, say, __gt__ is a
regular ndarray, which isn't true.
@charris charris added this to the 1.24.3 release milestone Mar 5, 2023
@charris charris merged commit 0bfdac4 into numpy:maintenance/1.24.x Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants