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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

4 participants