From fb3f7b94405934bc545a3f9e27d950c7c9964c27 Mon Sep 17 00:00:00 2001 From: apple1417 Date: Mon, 17 Feb 2025 20:09:27 +1300 Subject: [PATCH] fix keybind decorator overloads since the default is released, setting the overloads to default none was always wrong a recent pybind update started detecting this as overlapping signatures - presumably since it throught you didn't need to provide the event arg --- keybinds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keybinds.py b/keybinds.py index b080794..2a861ad 100644 --- a/keybinds.py +++ b/keybinds.py @@ -169,7 +169,7 @@ def keybind( description_title: str | None = None, is_hidden: bool = False, is_rebindable: bool = True, - event_filter: None = None, + event_filter: None, ) -> KeybindType: ... @@ -184,7 +184,7 @@ def keybind( description_title: str | None = None, is_hidden: bool = False, is_rebindable: bool = True, - event_filter: None = None, + event_filter: None, ) -> Callable[[KeybindCallback_Event], KeybindType]: ...