From a48aececfd129b96ab54e8369c0adef3770a35b1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 16 Sep 2019 15:34:34 +0100 Subject: [PATCH] EventRoot._hook's `kwarg` should be a list of tuples --- src/EventManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EventManager.py b/src/EventManager.py index 5dd0e3e7..7acd98f9 100644 --- a/src/EventManager.py +++ b/src/EventManager.py @@ -143,7 +143,8 @@ class EventRoot(object): return DEFAULT_EVENT_DELIMITER.join(path_lower) def _hook(self, path: typing.List[str], func: CALLBACK_TYPE, - context: typing.Optional[str], priority: int, kwargs: dict + context: typing.Optional[str], priority: int, + kwargs: typing.List[typing.Tuple[str, typing.Any]] = [] ) -> EventHook: path_str = self._path_str(path) new_hook = EventHook(path_str, func, context, priority, kwargs)