File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class LayeredDirty(LayeredUpdates[_DirtySpriteT]):
144144 def clear (self , surface : Surface , bgd : Surface ) -> None : ... # type: ignore[override]
145145 def repaint_rect (self , screen_rect : RectLike ) -> None : ...
146146 def set_clip (self , screen_rect : Optional [RectLike ] = None ) -> None : ...
147- def get_clip (self ) -> Union [FRect , Rect ]: ...
147+ def get_clip (self ) -> Optional [ Union [FRect , Rect ] ]: ...
148148 def set_timing_threshold (self , time_ms : SupportsFloat ) -> None : ...
149149 @deprecated (
150150 "since 2.1.1. Use `pygame.sprite.LayeredDirty.set_timing_threshold` instead"
Original file line number Diff line number Diff line change @@ -1323,7 +1323,7 @@ def set_clip(self, screen_rect=None):
13231323 def get_clip (self ):
13241324 """get the area where drawing will occur
13251325
1326- LayeredDirty.get_clip(): return Rect
1326+ LayeredDirty.get_clip(): return Rect or None
13271327
13281328 """
13291329 return self ._clip
You can’t perform that action at this time.
0 commit comments