Skip to content

Commit fa42eb9

Browse files
committed
Fix GroupSingle.sprite optional type
1 parent 763aa7e commit fa42eb9

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
@@ -204,7 +204,7 @@ class LayeredDirty(LayeredUpdates[_TDirtySprite]):
204204
def set_timing_treshold(self, time_ms: SupportsFloat) -> None: ...
205205

206206
class GroupSingle(AbstractGroup[_TSprite]):
207-
sprite: _TSprite
207+
sprite: Optional[_TSprite]
208208
def __init__(self, sprite: Optional[_TSprite] = None) -> None: ...
209209

210210
# argument to collide_rect must have rect attribute

0 commit comments

Comments
 (0)