Skip to content

Commit bd170fa

Browse files
committed
Address issue with unknown integer values for platform-specific button types.
1 parent e4ab75c commit bd170fa

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

stubs/pynput/pynput/mouse/_base.pyi

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,36 @@ class Button(enum.Enum):
1313
middle = 2
1414
right = 3
1515
if sys.platform == "linux":
16-
button8 = ...
17-
button9 = ...
18-
button10 = ...
19-
button11 = ...
20-
button12 = ...
21-
button13 = ...
22-
button14 = ...
23-
button15 = ...
24-
button16 = ...
25-
button17 = ...
26-
button18 = ...
27-
button19 = ...
28-
button20 = ...
29-
button21 = ...
30-
button22 = ...
31-
button23 = ...
32-
button24 = ...
33-
button25 = ...
34-
button26 = ...
35-
button27 = ...
36-
button28 = ...
37-
button29 = ...
38-
button30 = ...
39-
scroll_down = ...
40-
scroll_left = ...
41-
scroll_right = ...
42-
scroll_up = ...
16+
button8 = int()
17+
button9 = int()
18+
button10 = int()
19+
button11 = int()
20+
button12 = int()
21+
button13 = int()
22+
button14 = int()
23+
button15 = int()
24+
button16 = int()
25+
button17 = int()
26+
button18 = int()
27+
button19 = int()
28+
button20 = int()
29+
button21 = int()
30+
button22 = int()
31+
button23 = int()
32+
button24 = int()
33+
button25 = int()
34+
button26 = int()
35+
button27 = int()
36+
button28 = int()
37+
button29 = int()
38+
button30 = int()
39+
scroll_down = int()
40+
scroll_left = int()
41+
scroll_right = int()
42+
scroll_up = int()
4343
if sys.platform == "win32":
44-
x1 = ...
45-
x2 = ...
44+
x1 = int()
45+
x2 = int()
4646

4747
class Controller:
4848
def __init__(self) -> None: ...

0 commit comments

Comments
 (0)