-
-
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
adapt to NEP 51 #8064
adapt to NEP 51 #8064
Conversation
Should we keep the numpy representation since that's more accurate? We could use |
I wouldn't think so, but I might be wrong: we already have the dtype information right beside it so it wouldn't add much, and they are usually taken out of arrays and are only formatted that way because we iterate over the array's values. That said, there are definitely a few instances where we actually do return |
You could also parse them to python floats/ints before displaying them. This would work with all numpy versions. |
Cast, you mean? |
Simply |
The However, for some we're not the ones who issue those (an example: According to numpy/numpy#24470, the recommendation is to test a single |
this should now be ready for merging, and the rolling failures is an issue upstream in |
With NEP 51 (and the changes to
numpy
main
), scalar types no longer pretend to be standard python types in their string representation. This fixes most of the errors in the tests but there are still a few remaining in the doctests (in particular, doctests for private plotting utils).