-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
mypy failures with numpy>=2 #9231
Comments
This one is because numpy removed their experimental np.array_api namespace. It should be fixable simply by replacing it with numpy's main namespace. See |
Should be a little careful about this. I don't know test_strategies.py that well but |
this is the relevant part of the code: xarray/xarray/tests/test_strategies.py Lines 212 to 222 in 5edd249
We already use numpy.array_api only on numpy<2.0 , but mypy doesn't appear to understand the version check. So we might just have to add attr-defined to the type ignores?
The |
Closed by #9252 |
What happened?
Mypy fails on main with numpy >= 2
The text was updated successfully, but these errors were encountered: