From a08eef32440378b6e50835f34f701d4649af8b88 Mon Sep 17 00:00:00 2001 From: Athanasius <Athanasius@miggy.org> Date: Thu, 22 Dec 2022 13:24:01 +0000 Subject: [PATCH] flake8, hotkey/darwin: Just ignore this file for now It'll take digging into macOS-specific documents to type things sufficiently to pass the flake8 TAE001 "too few type annotations" check. --- .flake8 | 1 + hotkey/darwin.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index c8dc0cc6..7207bf81 100644 --- a/.flake8 +++ b/.flake8 @@ -8,6 +8,7 @@ exclude = venv/ .venv/ wix/ + hotkey/darwin.py # FIXME: Check under macOS VM at some point # Show exactly where in a line the error happened #show-source = True diff --git a/hotkey/darwin.py b/hotkey/darwin.py index 9989b4f9..102a73fa 100644 --- a/hotkey/darwin.py +++ b/hotkey/darwin.py @@ -56,7 +56,7 @@ class MacHotkeyMgr(AbstractHotkeyMgr): pathlib.Path(config.respath_path) / 'snd_bad.wav', False ) - def register(self, root: tk.Tk, keycode, modifiers) -> None: + def register(self, root: tk.Tk, keycode: int, modifiers: int) -> None: """ Register current hotkey for monitoring.