Skip to content

Commit

Permalink
Merge pull request #4119 from Lukasgrat/main
Browse files Browse the repository at this point in the history
Added generics to abstract group for IDE completion
  • Loading branch information
illume committed Apr 14, 2024
2 parents 9f6523d + 05855d6 commit 671a64f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src_py/sprite.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
# should handle just about every need, but perhaps more optimized
# specific ones that aren't quite so general but fit into common
# specialized cases.
from typing import Generic, TypeVar

from weakref import WeakSet
from warnings import warn
Expand Down Expand Up @@ -359,7 +360,7 @@ class WeakDirtySprite(WeakSprite, DirtySprite):
"""


class AbstractGroup:
class AbstractGroup(Generic[TypeVar('T')]):
"""base class for containers of sprites
AbstractGroup does everything needed to behave as a normal group. You can
Expand Down

0 comments on commit 671a64f

Please sign in to comment.