Skip to content

Commit 6cb9bd9

Browse files
committed
Stubs for Joystick.set_led
1 parent 53c0310 commit 6cb9bd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buildconfig/stubs/pygame/joystick.pyi

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

3+
from pygame import Color
34
from typing_extensions import deprecated # added in 3.13
45

56
def init() -> None: ...
@@ -31,6 +32,7 @@ class JoystickType:
3132
self, low_frequency: float, high_frequency: float, duration: int
3233
) -> bool: ...
3334
def stop_rumble(self) -> None: ...
35+
def set_led(self, color: Color | tuple[int, int, int]) -> bool: ...
3436

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

0 commit comments

Comments
 (0)