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

Fix (F)Rect.scale_by(_ip) handling of the scale_by parameter #3078

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

ankith26
Copy link
Member

  1. scale_by was incorrectly returning a valid object even when the underlying scale_by_ip operation was failing. This PR fixes this and also the memleak resulting from it.
  2. The scale_by argument was keyword only so far, and the docs didn't make a mention of this. So I updated the implementation to handle a sequence scale if it is passed positionally

@ankith26 ankith26 requested a review from a team as a code owner August 22, 2024 14:11
@Matiiss Matiiss changed the title Fix scale_by(_ip) argument handling Fix (F)Rect.scale_by(_ip) handling of the scale_by parameter Aug 30, 2024
Copy link
Member

@Matiiss Matiiss left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@yunline yunline added rect pygame.rect bugfix PR that fixes bug labels Sep 6, 2024
Copy link
Contributor

@damusss damusss left a comment

Choose a reason for hiding this comment

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

LGTM, thanks :)

@damusss damusss added this to the 2.5.2 milestone Sep 15, 2024
Copy link
Contributor

@bilhox bilhox left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@MyreMylar MyreMylar left a comment

Choose a reason for hiding this comment

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

OK, LGTM 👍

@MyreMylar MyreMylar merged commit 295a033 into main Oct 5, 2024
26 checks passed
@ankith26 ankith26 deleted the ankith26-scale-by-arg branch October 5, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR that fixes bug rect pygame.rect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants