Skip to content
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

Simple fix to swap numpy.float type out in favour of float #2815

Merged
merged 2 commits into from Nov 6, 2021

Conversation

MyreMylar
Copy link
Contributor

This is because numpy.float is now deprecated.

See #2814

@MyreMylar MyreMylar added the surfarray pygame.surfarray label Nov 3, 2021
@Starbuck5
Copy link
Contributor

It could also be good to have a comment linking to the issue, for curious people in the future.

Added comment explaining float type addition post loop due to deprecation of numpy.float
Copy link
Contributor

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍 🎉

@Starbuck5 Starbuck5 linked an issue Nov 5, 2021 that may be closed by this pull request
Copy link
Contributor

@Starbuck5 Starbuck5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@Starbuck5 Starbuck5 merged commit f36480d into pygame:main Nov 6, 2021
@Starbuck5 Starbuck5 added this to the 2.1 milestone Nov 6, 2021
@MyreMylar MyreMylar deleted the fix_surfarray_deprecation_warnings branch December 29, 2021 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
surfarray pygame.surfarray
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warnings from surfarray.py after numpy version 1.20.0
3 participants