Fix type annotation for :zoom. Fixes #332.

This commit is contained in:
Florian Bruhin 2014-12-15 22:59:45 +01:00
parent 33120bb780
commit 512e51eeb4

View File

@ -611,7 +611,8 @@ class CommandDispatcher:
tab.zoom(-count) tab.zoom(-count)
@cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.register(instance='command-dispatcher', scope='window')
def zoom(self, zoom=None, count: {'special': 'count'}=None): def zoom(self, zoom: {'type': int}=None,
count: {'special': 'count'}=None):
"""Set the zoom level for the current tab. """Set the zoom level for the current tab.
The zoom can be given as argument or as [count]. If neither of both is The zoom can be given as argument or as [count]. If neither of both is