mypy: Fix assert location
This commit is contained in:
parent
f34a8ba194
commit
7934dc9a95
@ -1190,11 +1190,11 @@ class CommandDispatcher:
|
|||||||
if config.val.tabs.wrap:
|
if config.val.tabs.wrap:
|
||||||
new_idx %= self._count()
|
new_idx %= self._count()
|
||||||
else:
|
else:
|
||||||
assert isinstance(index, int)
|
|
||||||
# absolute moving
|
# absolute moving
|
||||||
if count is not None:
|
if count is not None:
|
||||||
new_idx = count - 1
|
new_idx = count - 1
|
||||||
elif index is not None:
|
elif index is not None:
|
||||||
|
assert isinstance(index, int)
|
||||||
new_idx = index - 1 if index >= 0 else index + self._count()
|
new_idx = index - 1 if index >= 0 else index + self._count()
|
||||||
else:
|
else:
|
||||||
new_idx = 0
|
new_idx = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user