Skip to content

Commit 33f6abb

Browse files
nachomaizaatle
andauthored
Add missing TypeVar to _SpriteOrIterable
Co-authored-by: aatle <[email protected]>
1 parent 3e94823 commit 33f6abb

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
@@ -128,7 +128,7 @@ _TSprite2 = TypeVar("_TSprite2", bound=_SupportsSprite)
128128
_TDirtySprite = TypeVar("_TDirtySprite", bound=_SupportsDirtySprite)
129129

130130
# typevar for sprite or iterable of sprites, used in Group init, add and remove
131-
_SpriteOrIterable = Union[_TSprite, Iterable[_SpriteOrIterable]]
131+
_SpriteOrIterable = Union[_TSprite, Iterable[_SpriteOrIterable[_TSprite]]]
132132

133133
class AbstractGroup(Generic[_TSprite]):
134134
spritedict: dict[_TSprite, Optional[Union[FRect, Rect]]]

0 commit comments

Comments
 (0)