From ac4d78579deab4688ee2856f543c899999c0d701 Mon Sep 17 00:00:00 2001 From: Ankith Date: Sun, 3 Nov 2024 15:34:31 +0530 Subject: [PATCH] Use SequenceLike in geometry stubs --- buildconfig/stubs/pygame/geometry.pyi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildconfig/stubs/pygame/geometry.pyi b/buildconfig/stubs/pygame/geometry.pyi index f7c1edf517..d21842a494 100644 --- a/buildconfig/stubs/pygame/geometry.pyi +++ b/buildconfig/stubs/pygame/geometry.pyi @@ -4,7 +4,6 @@ from typing import ( Callable, Protocol, Tuple, - Sequence, List, ) @@ -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