Skip to content

TYP: Type MaskedArray.__getitem__ #29472

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 3 commits into from
Jul 30, 2025
Merged

Conversation

MarcoGorelli
Copy link
Member

No description provided.

This comment has been minimized.

@MarcoGorelli MarcoGorelli marked this pull request as ready for review July 29, 2025 19:47
@jorenham jorenham self-requested a review July 30, 2025 00:19
@jorenham jorenham added the component: numpy.ma masked arrays label Jul 30, 2025
Copy link

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

xarray (https://github.com/pydata/xarray)
- xarray/tests/test_namedarray.py: note: In member "test_duck_array_class" of class "TestNamedArray":
- xarray/tests/test_namedarray.py:377: error: Argument 1 to "check_duck_array_typevar" has incompatible type "MaskedArray[Any, dtype[signedinteger[_64Bit]]]"; expected "_arrayfunction[Any, Never] | _arrayapi[Any, Never]"  [arg-type]
- xarray/tests/test_namedarray.py: note: In class "TestNamedArray":

@jorenham jorenham merged commit 00bbfef into numpy:main Jul 30, 2025
78 checks passed
@jorenham
Copy link
Member

Thanks!

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy