Skip to content

Commit 71ca715

Browse files
authored
Merge pull request #3212 from pygame-community/ankith26-fix-sequence-stub
Use SequenceLike in geometry stubs
2 parents 3252060 + ac4d785 commit 71ca715

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

buildconfig/stubs/pygame/geometry.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ from typing import (
44
Callable,
55
Protocol,
66
Tuple,
7-
Sequence,
87
List,
98
)
109

@@ -120,8 +119,8 @@ class Circle:
120119
@overload
121120
def colliderect(self, topleft: Point, size: Point, /) -> bool: ...
122121
def collideswith(self, other: _CanBeCollided, /) -> bool: ...
123-
def collidelist(self, colliders: Sequence[_CanBeCollided], /) -> int: ...
124-
def collidelistall(self, colliders: Sequence[_CanBeCollided], /) -> List[int]: ...
122+
def collidelist(self, colliders: SequenceLike[_CanBeCollided], /) -> int: ...
123+
def collidelistall(self, colliders: SequenceLike[_CanBeCollided], /) -> List[int]: ...
125124
def intersect(self, other: _CanBeIntersected, /) -> List[Tuple[float, float]]: ...
126125
def contains(self, shape: _CanBeCollided, /) -> bool: ...
127126
@overload

0 commit comments

Comments
 (0)