Skip to content

Commit ac03a98

Browse files
committed
specify a more correct Sprite.groups return type
1 parent 52b441d commit ac03a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildconfig/stubs/pygame/sprite.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Sprite(_SupportsSprite):
106106
def remove(self, *groups: _Group) -> None: ...
107107
def kill(self) -> None: ...
108108
def alive(self) -> bool: ...
109-
def groups(self) -> list[_Group]: ...
109+
def groups(self) -> list[AbstractGroup[_SupportsSprite]]: ...
110110

111111
# concrete dirty sprite implementation class
112112
class DirtySprite(Sprite, _SupportsDirtySprite):

0 commit comments

Comments
 (0)