Skip to content

Improve sprite stubs #3525

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Improve sprite stubs #3525

wants to merge 9 commits into from

Conversation

aatle
Copy link
Contributor

@aatle aatle commented Jul 1, 2025

Typing fixes, simplifications, improvements, and renames for the sprite module.
Also see #3488, which had other fixes.

In the future, the Optional might get removed from image and rect, possibly with runtime changes. This would fix the last sprite typing issue and make it as comfortable to use static typing with as other pygame modules.

@aatle aatle requested a review from a team as a code owner July 1, 2025 22:14
@aatle aatle added type hints Type hint checking related tasks sprite pygame.sprite labels Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sprite pygame.sprite type hints Type hint checking related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant