Skip to content

Commit ac4d785

Browse files
committed
Use SequenceLike in geometry stubs
1 parent b805e0f commit ac4d785

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)