Skip to content

Commit 78df4ed

Browse files
committed
Type color parameter of set_led as positional-only
1 parent 7896a55 commit 78df4ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildconfig/stubs/pygame/_sdl2/controller.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ class Controller:
3131
self, low_frequency: float, high_frequency: float, duration: int
3232
) -> bool: ...
3333
def stop_rumble(self) -> None: ...
34-
def set_led(self, color: ColorLike) -> bool: ...
34+
def set_led(self, color: ColorLike, /) -> bool: ...

buildconfig/stubs/pygame/joystick.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: ColorLike) -> 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)