diff options
Diffstat (limited to 'qutebrowser/components/scrollcommands.py')
-rw-r--r-- | qutebrowser/components/scrollcommands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/components/scrollcommands.py b/qutebrowser/components/scrollcommands.py index 757c23b2b..faa31a931 100644 --- a/qutebrowser/components/scrollcommands.py +++ b/qutebrowser/components/scrollcommands.py @@ -19,6 +19,7 @@ """Scrolling-related commands.""" +from typing import Dict, Callable, Any from qutebrowser.api import cmdutils, apitypes @@ -54,7 +55,8 @@ def scroll(tab: apitypes.Tab, direction: str, count: int = 1) -> None: (up/down/left/right/top/bottom). count: multiplier """ - funcs = { + # FIXME:mypy Use a callback protocol to enforce having 'count'? + funcs: Dict[str, Callable[..., None]] = { 'up': tab.scroller.up, 'down': tab.scroller.down, 'left': tab.scroller.left, |