From 04594f5f9d59b5b9b591049ea1f355a9ad0f8e39 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 22 Jul 2023 14:28:57 +0200 Subject: Fix Qt 5 warning opening always The stray comma made it a tuple (False,) which was always True. --- qutebrowser/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index fbfa3df12..f40c31a50 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -42,7 +42,7 @@ import tempfile import pathlib import datetime import argparse -from typing import Iterable, Optional +from typing import Iterable, Optional, List, Tuple from qutebrowser.qt import machinery from qutebrowser.qt.widgets import QApplication, QWidget @@ -340,7 +340,7 @@ def _open_special_pages(args): tabbed_browser = objreg.get('tabbed-browser', scope='window', window='last-focused') - pages = [ + pages: List[Tuple[str, bool, str]] = [ # state, condition, URL ('quickstart-done', True, @@ -372,7 +372,7 @@ def _open_special_pages(args): ( machinery.IS_QT5 and machinery.INFO.reason == machinery.SelectionReason.auto and - objects.backend != usertypes.Backend.QtWebKit, + objects.backend != usertypes.Backend.QtWebKit ), 'qute://warning/qt5'), ] -- cgit v1.2.3-54-g00ecf