File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ from pygame.rect import FRect, Rect
2626from pygame .surface import Surface
2727from pygame .typing import Point , RectLike
2828
29- # generic for _HasRect, used in sprite collide functions
30- _THasRect = TypeVar ("_THasRect" , bound = _HasRect )
31-
3229# non-generic Group, used in Sprite
3330_Group = AbstractGroup [_SupportsSprite ]
3431
@@ -266,6 +263,9 @@ class collide_circle_ratio:
266263# addition to mandatorily having a rect attribute
267264_SupportsCollideMask = Union [_HasImageAndRect , _HasMaskAndRect ]
268265
266+ # generic for _HasRect, used in sprite collide functions
267+ _THasRect = TypeVar ("_THasRect" , bound = _HasRect )
268+
269269def collide_mask (
270270 left : _SupportsCollideMask , right : _SupportsCollideMask
271271) -> Optional [tuple [int , int ]]: ...
You can’t perform that action at this time.
0 commit comments