Skip to content

Commit fc93bfc

Browse files
committed
Fix/improve _sdl2 stubs
1 parent 565cae6 commit fc93bfc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

buildconfig/stubs/pygame/_sdl2/controller.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Controller:
2323
def as_joystick(self) -> JoystickType: ...
2424
def get_axis(self, axis: int) -> int: ...
2525
def get_button(self, button: int) -> bool: ...
26-
def get_mapping(self) -> dict: ...
27-
def set_mapping(self, mapping: dict) -> int: ...
28-
def rumble(self, ___) -> bool: ...
29-
def stop_rumble(
26+
def get_mapping(self) -> dict[str, str]: ...
27+
def set_mapping(self, mapping: dict[str, str]) -> int: ...
28+
def rumble(
3029
self, low_frequency: float, high_frequency: float, duration: int
3130
) -> bool: ...
31+
def stop_rumble(self) -> None: ...
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Union
22

33
def get_num_devices() -> int: ...
4-
def get_device(index: int) -> int: ...
5-
def get_num_fingers(device_id: int) -> int: ...
4+
def get_device(index: int, /) -> int: ...
5+
def get_num_fingers(device_id: int, /) -> int: ...
66
def get_finger(touchid: int, index: int) -> dict[str, Union[int, float]]: ...

0 commit comments

Comments
 (0)