You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that numpy.float has been deprecated in Numpy 1.20.0 (along with some other numpy types that were just aliases to python builtin types) so we should now just be using the standard python float type. See:
I'm not 100% that we should just swap out numpy.float for float in this list but from a quick skim that seems to be the recommendation.
This just popped up for me after upgrading a bunch of python libraries and running through my test suite.
Full Deprecation warning looks like this:
surfarray.py:54: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this wi
ll not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
numpy_floats.append(getattr(numpy, type_name))
The text was updated successfully, but these errors were encountered:
Specifically this section:
pygame/src_py/surfarray.py
Lines 50 to 54 in 14fbf61
It appears that
numpy.float
has been deprecated in Numpy 1.20.0 (along with some other numpy types that were just aliases to python builtin types) so we should now just be using the standard pythonfloat
type. See:https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I'm not 100% that we should just swap out
numpy.float
forfloat
in this list but from a quick skim that seems to be the recommendation.This just popped up for me after upgrading a bunch of python libraries and running through my test suite.
Full Deprecation warning looks like this:
The text was updated successfully, but these errors were encountered: