summaryrefslogtreecommitdiff
path: root/qutebrowser/mainwindow/statusbar/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/mainwindow/statusbar/command.py')
-rw-r--r--qutebrowser/mainwindow/statusbar/command.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/qutebrowser/mainwindow/statusbar/command.py b/qutebrowser/mainwindow/statusbar/command.py
index 4332316a3..b9c78d623 100644
--- a/qutebrowser/mainwindow/statusbar/command.py
+++ b/qutebrowser/mainwindow/statusbar/command.py
@@ -259,6 +259,9 @@ class Command(misc.CommandLineEdit):
else:
raise utils.Unreachable("setText got called with invalid text "
"'{}'!".format(text))
+ # FIXME:mypy PyQt6 stubs issue
+ if machinery.IS_QT6:
+ text = cast(str, text)
super().setText(text)
def keyPressEvent(self, e: QKeyEvent) -> None: