Skip to content

Remove redundant code from Sprite.set_texture#1337

Merged
einarf merged 1 commit intopythonarcade:developmentfrom
alejcas:improvements
Sep 28, 2022
Merged

Remove redundant code from Sprite.set_texture#1337
einarf merged 1 commit intopythonarcade:developmentfrom
alejcas:improvements

Conversation

@alejcas
Copy link
Member

@alejcas alejcas commented Sep 27, 2022

Just removing duplicate code in Sprite.set_texture... and also setting the method return type

@alejcas
Copy link
Member Author

alejcas commented Sep 27, 2022

That code was duplicated in the property setter of the texture property.

So to avoid duplication just call the texture setter from the method set_texture

@einarf
Copy link
Member

einarf commented Sep 28, 2022

Not sure how long this methods wills stay around, but let's just merge this 😄

@einarf einarf merged commit c9e0687 into pythonarcade:development Sep 28, 2022
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.

2 participants