mypy: Fix type for :scroll

This commit is contained in:
Florian Bruhin 2018-11-22 14:46:22 +01:00
parent b63ed090d8
commit 08bd47bc16

View File

@ -681,7 +681,7 @@ class CommandDispatcher:
@cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.register(instance='command-dispatcher', scope='window')
@cmdutils.argument('count', count=True) @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. """Scroll the current tab in the given direction.
Note you can use `:run-with-count` to have a keybinding with a bigger Note you can use `:run-with-count` to have a keybinding with a bigger