summaryrefslogtreecommitdiff
path: root/qutebrowser/components/readlinecommands.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-04-24 18:06:07 +0200
committerFlorian Bruhin <me@the-compiler.org>2022-04-24 18:10:10 +0200
commite2db790593eee8329fe8b168e82043bcbb19cbae (patch)
tree8d0690d20472bba48e4074c463019e0b6d0b2ee6 /qutebrowser/components/readlinecommands.py
parent65345eab9572fe2426eb8292aa4ab734c099576f (diff)
downloadqutebrowser-e2db790593eee8329fe8b168e82043bcbb19cbae.tar.gz
qutebrowser-e2db790593eee8329fe8b168e82043bcbb19cbae.zip
Diffstat (limited to 'qutebrowser/components/readlinecommands.py')
-rw-r--r--qutebrowser/components/readlinecommands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/components/readlinecommands.py b/qutebrowser/components/readlinecommands.py
index 4ac03041c..a0631f3d1 100644
--- a/qutebrowser/components/readlinecommands.py
+++ b/qutebrowser/components/readlinecommands.py
@@ -42,7 +42,7 @@ class _ReadlineBridge:
"""Get the currently active QLineEdit."""
# FIXME add this to api.utils or so
qapp = QApplication.instance()
- assert qapp is not None
+ assert isinstance(qapp, QApplication)
w = qapp.focusWidget()
if isinstance(w, QLineEdit):