diff options
| author | 2019-09-16 15:34:34 +0100 | |
|---|---|---|
| committer | 2019-09-16 15:34:34 +0100 | |
| commit | a48aececfd129b96ab54e8369c0adef3770a35b1 (patch) | |
| tree | 0a7ff357946a2359267e7e0702948a71449012e2 /src/EventManager.py | |
| parent | add strip_otr.py (diff) | |
| signature | ||
EventRoot._hook's `kwarg` should be a list of tuples
Diffstat (limited to 'src/EventManager.py')
| -rw-r--r-- | src/EventManager.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
