From bd170fab90094ce6f711af36db556299234a4c58 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Fri, 12 Apr 2024 22:24:25 -0700 Subject: [PATCH] Address issue with unknown integer values for platform-specific button types. --- stubs/pynput/pynput/mouse/_base.pyi | 58 ++++++++++++++--------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/stubs/pynput/pynput/mouse/_base.pyi b/stubs/pynput/pynput/mouse/_base.pyi index 18de43e741cf..040f8d32a933 100644 --- a/stubs/pynput/pynput/mouse/_base.pyi +++ b/stubs/pynput/pynput/mouse/_base.pyi @@ -13,36 +13,36 @@ class Button(enum.Enum): middle = 2 right = 3 if sys.platform == "linux": - button8 = ... - button9 = ... - button10 = ... - button11 = ... - button12 = ... - button13 = ... - button14 = ... - button15 = ... - button16 = ... - button17 = ... - button18 = ... - button19 = ... - button20 = ... - button21 = ... - button22 = ... - button23 = ... - button24 = ... - button25 = ... - button26 = ... - button27 = ... - button28 = ... - button29 = ... - button30 = ... - scroll_down = ... - scroll_left = ... - scroll_right = ... - scroll_up = ... + button8 = int() + button9 = int() + button10 = int() + button11 = int() + button12 = int() + button13 = int() + button14 = int() + button15 = int() + button16 = int() + button17 = int() + button18 = int() + button19 = int() + button20 = int() + button21 = int() + button22 = int() + button23 = int() + button24 = int() + button25 = int() + button26 = int() + button27 = int() + button28 = int() + button29 = int() + button30 = int() + scroll_down = int() + scroll_left = int() + scroll_right = int() + scroll_up = int() if sys.platform == "win32": - x1 = ... - x2 = ... + x1 = int() + x2 = int() class Controller: def __init__(self) -> None: ...