Skip to content

Commit 763aa7e

Browse files
committed
Remove redunant _HasRadiusAndRect protocol
1 parent 7896a55 commit 763aa7e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

buildconfig/stubs/pygame/sprite.pyi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ class _HasImageAndRect(_HasRect, Protocol):
4343
class _HasMaskAndRect(_HasRect, Protocol):
4444
mask: Mask
4545

46-
# radius in addition to rect
47-
class _HasRadiusAndRect(_HasRect, Protocol):
48-
radius: float
49-
5046
# non-generic Group, used in Sprite
5147
_Group = AbstractGroup[Any]
5248

@@ -220,7 +216,7 @@ class collide_rect_ratio:
220216
def __call__(self, left: _HasRect, right: _HasRect) -> bool: ...
221217

222218
# must have rect attribute, may optionally have radius attribute
223-
_SupportsCollideCircle = Union[_HasRect, _HasRadiusAndRect]
219+
_SupportsCollideCircle = _HasRect
224220

225221
def collide_circle(
226222
left: _SupportsCollideCircle, right: _SupportsCollideCircle

0 commit comments

Comments
 (0)