Skip to content

Commit

Permalink
Use SequenceLike in geometry stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Nov 3, 2024
1 parent b805e0f commit ac4d785
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions buildconfig/stubs/pygame/geometry.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ from typing import (
Callable,
Protocol,
Tuple,
Sequence,
List,
)

Expand Down Expand Up @@ -120,8 +119,8 @@ class Circle:
@overload
def colliderect(self, topleft: Point, size: Point, /) -> bool: ...
def collideswith(self, other: _CanBeCollided, /) -> bool: ...
def collidelist(self, colliders: Sequence[_CanBeCollided], /) -> int: ...
def collidelistall(self, colliders: Sequence[_CanBeCollided], /) -> List[int]: ...
def collidelist(self, colliders: SequenceLike[_CanBeCollided], /) -> int: ...
def collidelistall(self, colliders: SequenceLike[_CanBeCollided], /) -> List[int]: ...
def intersect(self, other: _CanBeIntersected, /) -> List[Tuple[float, float]]: ...
def contains(self, shape: _CanBeCollided, /) -> bool: ...
@overload
Expand Down

0 comments on commit ac4d785

Please sign in to comment.