diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-04-24 18:06:07 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-04-24 18:10:10 +0200 |
commit | e2db790593eee8329fe8b168e82043bcbb19cbae (patch) | |
tree | 8d0690d20472bba48e4074c463019e0b6d0b2ee6 /qutebrowser/mainwindow/statusbar/command.py | |
parent | 65345eab9572fe2426eb8292aa4ab734c099576f (diff) | |
download | qutebrowser-e2db790593eee8329fe8b168e82043bcbb19cbae.tar.gz qutebrowser-e2db790593eee8329fe8b168e82043bcbb19cbae.zip |
wipnew-stubs
Diffstat (limited to 'qutebrowser/mainwindow/statusbar/command.py')
-rw-r--r-- | qutebrowser/mainwindow/statusbar/command.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qutebrowser/mainwindow/statusbar/command.py b/qutebrowser/mainwindow/statusbar/command.py index 199f0a103..95076380a 100644 --- a/qutebrowser/mainwindow/statusbar/command.py +++ b/qutebrowser/mainwindow/statusbar/command.py @@ -19,6 +19,7 @@ """The commandline in the statusbar.""" +from typing import Optional from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt, QSize from PyQt5.QtGui import QKeyEvent @@ -240,7 +241,7 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit): self.clear_completion_selection.emit() self.hide_completion.emit() - def setText(self, text: str) -> None: + def setText(self, text: Optional[str]) -> None: """Extend setText to set prefix and make sure the prompt is ok.""" if not text: pass |