diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-07-20 14:42:05 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-07-20 14:42:05 +0200 |
commit | d54b9bc6383de8df6182957734917746c9123492 (patch) | |
tree | e191acd459b260f13f692af7d52ac70b8509e274 | |
parent | a34d392fe11dae105cbf3bce3f7b97ec43d53b1b (diff) | |
download | qutebrowser-d54b9bc6383de8df6182957734917746c9123492.tar.gz qutebrowser-d54b9bc6383de8df6182957734917746c9123492.zip |
Fix lint
-rw-r--r-- | qutebrowser/mainwindow/tabbedbrowser.py | 2 | ||||
-rw-r--r-- | tests/end2end/test_insert_mode.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index de0ec929b..619c54a0d 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -722,7 +722,7 @@ class TabbedBrowser(QWidget): """Leave insert/hint mode when loading started.""" tab = self.widget.currentWidget() if tab is None: - return + return # type: ignore[unreachable] url = tab.url() if not url.isValid(): diff --git a/tests/end2end/test_insert_mode.py b/tests/end2end/test_insert_mode.py index c22208c62..ceb2308c7 100644 --- a/tests/end2end/test_insert_mode.py +++ b/tests/end2end/test_insert_mode.py @@ -111,7 +111,8 @@ def test_auto_leave_insert_mode_delayed_load(quteproc): exit insert mode. """ quteproc.set_setting('input.insert_mode.leave_on_load', 'true') - quteproc.open_path('data/insert_mode_settings/html/delayed.html', wait=False) + quteproc.open_path('data/insert_mode_settings/html/delayed.html', + wait=False) quteproc.wait_for(message="Changing title for idx 0 to " "'Input with delayed load'") |