Skip to content

Commit

Permalink
Merge pull request #3212 from pygame-community/ankith26-fix-sequence-…
Browse files Browse the repository at this point in the history
…stub

Use SequenceLike in geometry stubs
  • Loading branch information
zoldalma999 authored Nov 17, 2024
2 parents 3252060 + ac4d785 commit 71ca715
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 71ca715

Please sign in to comment.