diff options
author | Florian Bruhin <me@the-compiler.org> | 2018-12-10 15:56:05 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2018-12-10 16:27:04 +0100 |
commit | b41005d487812bc9a9eeb07bfc3b9a4da7e72b32 (patch) | |
tree | fccfad220caee95871547766eb6fc3710cc9fb81 /qutebrowser/api | |
parent | a96c6efc34cbb8d612ad651b858650e1f6fb2dd5 (diff) | |
download | qutebrowser-b41005d487812bc9a9eeb07bfc3b9a4da7e72b32.tar.gz qutebrowser-b41005d487812bc9a9eeb07bfc3b9a4da7e72b32.zip |
Fix mypy issues
Diffstat (limited to 'qutebrowser/api')
-rw-r--r-- | qutebrowser/api/hook.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qutebrowser/api/hook.py b/qutebrowser/api/hook.py index a975438ea..bd8e2a635 100644 --- a/qutebrowser/api/hook.py +++ b/qutebrowser/api/hook.py @@ -48,9 +48,10 @@ class config_changed: """Decorator to get notified about changed configs.""" - def __init__(self, option_filter=None): + def __init__(self, option_filter: str = None) -> None: self._filter = option_filter def __call__(self, func: typing.Callable) -> typing.Callable: info = _add_module_info(func) info.config_changed_hooks.append((self._filter, func)) + return func |