Skip to content

Commit b4a9f62

Browse files
committed
Stubs
1 parent b63dabb commit b4a9f62

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

buildconfig/stubs/pygame/_sdl2/controller.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import final
22

33
from pygame.joystick import JoystickType
4+
from pygame.typing import ColorLike
45

56
def init() -> None: ...
67
def get_init() -> bool: ...
@@ -30,3 +31,4 @@ class Controller:
3031
self, low_frequency: float, high_frequency: float, duration: int
3132
) -> bool: ...
3233
def stop_rumble(self) -> None: ...
34+
def set_led(self, color: ColorLike) -> bool: ...

buildconfig/stubs/pygame/joystick.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import final
22

3-
from pygame import Color
3+
from pygame.typing import ColorLike
44
from typing_extensions import deprecated # added in 3.13
55

66
def init() -> None: ...
@@ -32,7 +32,7 @@ class JoystickType:
3232
self, low_frequency: float, high_frequency: float, duration: int
3333
) -> bool: ...
3434
def stop_rumble(self) -> None: ...
35-
def set_led(self, color: Color | tuple[int, int, int]) -> bool: ...
35+
def set_led(self, color: ColorLike) -> bool: ...
3636

3737
# according to the current implementation, Joystick is a function that returns
3838
# a JoystickType instance. In the future, when the C implementation is fixed to

0 commit comments

Comments
 (0)