From 7934dc9a95a26e0a23337871d94576384f18ae92 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 27 Nov 2018 08:37:59 +0100 Subject: [PATCH] mypy: Fix assert location --- 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 5c97aaf53..a53cfc75e 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1190,11 +1190,11 @@ class CommandDispatcher: if config.val.tabs.wrap: new_idx %= self._count() else: - assert isinstance(index, int) # absolute moving if count is not None: new_idx = count - 1 elif index is not None: + assert isinstance(index, int) new_idx = index - 1 if index >= 0 else index + self._count() else: new_idx = 0