diff --git a/buildconfig/stubs/pygame/sprite.pyi b/buildconfig/stubs/pygame/sprite.pyi index e29ebfc183..09dc246129 100644 --- a/buildconfig/stubs/pygame/sprite.pyi +++ b/buildconfig/stubs/pygame/sprite.pyi @@ -32,6 +32,7 @@ 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: ... @@ -47,7 +48,6 @@ class _SupportsSprite(Protocol): class _SupportsDirtySprite(_SupportsSprite, Protocol): dirty: int blendmode: int - source_rect: Union[FRect, Rect] visible: int _layer: int def _set_visible(self, val: int) -> None: ... @@ -66,6 +66,7 @@ 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: ... @@ -81,7 +82,6 @@ class Sprite(_SupportsSprite): class DirtySprite(_SupportsDirtySprite): dirty: int blendmode: int - source_rect: Union[FRect, Rect] visible: int _layer: int def _set_visible(self, val: int) -> None: ...