diff --git a/buildconfig/stubs/pygame/sprite.pyi b/buildconfig/stubs/pygame/sprite.pyi index 09dc246129..25f1224b35 100644 --- a/buildconfig/stubs/pygame/sprite.pyi +++ b/buildconfig/stubs/pygame/sprite.pyi @@ -21,6 +21,7 @@ _Group = AbstractGroup[_SpriteSupportsGroup] # protocol helps with structural subtyping for typevars in sprite group generics class _SupportsSprite(Protocol): + source_rect: Union[FRect, Rect] @property def image(self) -> Optional[Surface]: ... @image.setter @@ -32,7 +33,6 @@ class _SupportsSprite(Protocol): @property def layer(self) -> int: ... @layer.setter - source_rect: Union[FRect, Rect] def layer(self, value: int) -> None: ... def __init__(self, *groups: _Group) -> None: ... def add_internal(self, group: _Group) -> None: ... @@ -55,6 +55,7 @@ class _SupportsDirtySprite(_SupportsSprite, Protocol): # concrete sprite implementation class class Sprite(_SupportsSprite): + source_rect: Union[FRect, Rect] @property def image(self) -> Optional[Surface]: ... @image.setter @@ -66,7 +67,6 @@ class Sprite(_SupportsSprite): @property def layer(self) -> int: ... @layer.setter - source_rect: Union[FRect, Rect] def layer(self, value: int) -> None: ... def __init__(self, *groups: _Group) -> None: ... def add_internal(self, group: _Group) -> None: ...