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

int division in group props #148

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

FoamyGuy
Copy link
Contributor

@ladyada
Resolves: #147

Inside of scale, x, and y properties of Group it was using float division which ultimately raised TypeErrors when it attempted to refresh the display.

This changes all properties to use integer division //

I tested successfully with the reproducer from the issue.

@FoamyGuy FoamyGuy requested a review from a team January 18, 2025 17:57
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks for diagnosing this.

@FoamyGuy FoamyGuy marked this pull request as ready for review January 19, 2025 00:48
@FoamyGuy FoamyGuy merged commit 3f945da into adafruit:main Jan 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing Group x or y raises TypeError
2 participants