From 8a6ea6a375d146db24a9ddb4571908e7e4720542 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 9 Oct 2017 21:20:47 +0200 Subject: [PATCH] Add spaces around args with annotations Looks like pylint 1.7.3/.4 notices those --- qutebrowser/browser/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index c0c06c8ec..7a8825720 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1074,7 +1074,7 @@ class CommandDispatcher: @cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.argument('index', choices=['last']) @cmdutils.argument('count', count=True) - def tab_focus(self, index: typing.Union[str, int]=None, count=None): + def tab_focus(self, index: typing.Union[str, int] = None, count=None): """Select the tab given as argument/[count]. If neither count nor index are given, it behaves like tab-next. @@ -1111,7 +1111,7 @@ class CommandDispatcher: @cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.argument('index', choices=['+', '-']) @cmdutils.argument('count', count=True) - def tab_move(self, index: typing.Union[str, int]=None, count=None): + def tab_move(self, index: typing.Union[str, int] = None, count=None): """Move the current tab according to the argument and [count]. If neither is given, move it to the first position. @@ -1658,7 +1658,7 @@ class CommandDispatcher: hide=True) @cmdutils.argument('filter_', choices=['id']) def click_element(self, filter_: str, value, *, - target: usertypes.ClickTarget= + target: usertypes.ClickTarget = usertypes.ClickTarget.normal, force_event=False): """Click the element matching the given filter. @@ -2011,7 +2011,7 @@ class CommandDispatcher: @cmdutils.register(instance='command-dispatcher', scope='window', maxsplit=0, no_cmd_split=True) def jseval(self, js_code, file=False, quiet=False, *, - world: typing.Union[usertypes.JsWorld, int]=None): + world: typing.Union[usertypes.JsWorld, int] = None): """Evaluate a JavaScript string. Args: