diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-07-28 18:43:20 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-07-28 19:00:43 +0200 |
commit | a3034f6e052b778c9c86007ff060c2ea0ecc215a (patch) | |
tree | 5da0135d5aea8417fb96106ec511bdbb57008099 /qutebrowser/app.py | |
parent | 5e3d00c5a1c3e04d6168d1eb231e4e3912c2fd71 (diff) | |
download | qutebrowser-a3034f6e052b778c9c86007ff060c2ea0ecc215a.tar.gz qutebrowser-a3034f6e052b778c9c86007ff060c2ea0ecc215a.zip |
Fix broken type annotations
Diffstat (limited to 'qutebrowser/app.py')
-rw-r--r-- | qutebrowser/app.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 2c8fb72a6..087ecd94f 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -249,12 +249,15 @@ def process_pos_args(args, via_ipc=False, cwd=None, target_arg=None): will be an empty string. """ is_private = 'private-window' if target_arg == 'private-window' else None + + win_id = None # type: typing.Optional[int] + if via_ipc and not args: win_id = mainwindow.get_window(via_ipc, force_window=True, force_target=is_private) _open_startpage(win_id) return - win_id = None + for cmd in args: if cmd.startswith(':'): if win_id is None: |