Skip to content

Commit

Permalink
pyi file ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
JovialKnoll committed Dec 6, 2024
1 parent b9beb81 commit a52fa17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildconfig/stubs/pygame/sprite.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: ...
Expand All @@ -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
Expand All @@ -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: ...
Expand Down

0 comments on commit a52fa17

Please sign in to comment.