Skip to content

Commit 984c780

Browse files
committed
specify upper bound for __class_getitem__
1 parent 6494f0b commit 984c780

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
@@ -158,7 +158,7 @@ _TDirtySprite = TypeVar("_TDirtySprite", bound=_DirtySpriteSupportsGroup)
158158
class AbstractGroup(Generic[_TSprite]):
159159
spritedict: dict[_TSprite, Optional[Union[FRect, Rect]]]
160160
lostsprites: list[Union[FRect, Rect]]
161-
def __class_getitem__(cls, item: Any, /) -> types.GenericAlias: ...
161+
def __class_getitem__(cls, item: type[_SupportsSpriteGroup], /) -> types.GenericAlias: ...
162162
def __init__(self) -> None: ...
163163
def __len__(self) -> int: ...
164164
def __iter__(self) -> Iterator[_TSprite]: ...

0 commit comments

Comments
 (0)