From 08bd47bc16a27c46891b773efcaaec0a0e34d1cb Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 22 Nov 2018 14:46:22 +0100 Subject: [PATCH] mypy: Fix type for :scroll --- qutebrowser/browser/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index e94e55c3d..0bb3d076b 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -681,7 +681,7 @@ class CommandDispatcher: @cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.argument('count', count=True) - def scroll(self, direction: typing.Union[str, int], count=1): + def scroll(self, direction: str, count=1): """Scroll the current tab in the given direction. Note you can use `:run-with-count` to have a keybinding with a bigger