Skip to content

Improve SpriteList typing #1977

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

Merged
merged 26 commits into from
Feb 21, 2024

Conversation

pushfoo
Copy link
Member

@pushfoo pushfoo commented Feb 18, 2024

Addresses the SpriteList portion of #1867.

Changes

  • Add missing return types
  • Many Nones
  • SpriteType TypeVar where appropriate
  • Annotate SpriteList.extend's argument with Iterable[SpriteType] instead of List[SpriteType]
  • Annotate SpriteList.program and many protected attributes as Optional[Program]
  • Remove some extra whitespace

@pushfoo pushfoo force-pushed the sprite_list_type_improvements branch from 2e2b699 to 64c5ae9 Compare February 20, 2024 04:34
@pushfoo pushfoo marked this pull request as ready for review February 20, 2024 05:08
@pushfoo pushfoo requested a review from einarf February 21, 2024 21:06
@einarf
Copy link
Member

einarf commented Feb 21, 2024

Looks good 🚀

@einarf einarf merged commit 4e4c110 into pythonarcade:development Feb 21, 2024
@pushfoo pushfoo deleted the sprite_list_type_improvements branch February 21, 2024 23:34
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