Skip to content

TYP: Fix masked_array 2.5.0 regression - #31738

Merged
charris merged 1 commit into
numpy:mainfrom
jorenham:typing/gh-31737
Jun 24, 2026
Merged

charris merged 1 commit into
numpy:mainfrom
jorenham:typing/gh-31737

Conversation

@jorenham

Copy link
Copy Markdown
Member

Fixes #31737.

No AI.

@jorenham jorenham added 09 - Backport-Candidate PRs tagged should be backported 41 - Static typing labels Jun 24, 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:

xarray (https://github.com/pydata/xarray)
- xarray/tests/test_backends.py: note: In member "test_encoding_masked_arrays" of class "NetCDF4Base":
- xarray/tests/test_backends.py:2257: error: "TypeAliasType" not callable  [operator]
- xarray/tests/test_backends.py: note: At top level:

@charris
charris merged commit bfc2749 into numpy:main Jun 24, 2026
89 checks passed
@charris

charris commented Jun 24, 2026

Copy link
Copy Markdown
Member

Thanks Joren.

@jorenham
jorenham deleted the typing/gh-31737 branch June 24, 2026 14:18
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jul 2, 2026
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.

TYP: mypy reports error: "TypeAliasType" not callable when creating arrays with numpy.ma.masked_array since numpy v2.5

2 participants