summaryrefslogtreecommitdiff
path: root/qutebrowser/keyinput
diff options
context:
space:
mode:
authorRyan Roden-Corrent <ryan@rcorre.net>2021-01-03 13:41:11 -0500
committerRyan Roden-Corrent <ryan@rcorre.net>2021-01-03 13:41:11 -0500
commite16e67baeb59024cad52a33844cccb81045865cf (patch)
tree291cc29acf7d1bd7ddd46c10a0a1aff1e3afcf6c /qutebrowser/keyinput
parent3b7d459e0df635fa513472a8a00e84dc67c48aa1 (diff)
downloadqutebrowser-e16e67baeb59024cad52a33844cccb81045865cf.tar.gz
qutebrowser-e16e67baeb59024cad52a33844cccb81045865cf.zip
Fix PR issues for set-cmd-text completions.
- Prefer None to "" - Prefer implicit bool checking - Try to fix mypy warnings
Diffstat (limited to 'qutebrowser/keyinput')
-rw-r--r--qutebrowser/keyinput/modeparsers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qutebrowser/keyinput/modeparsers.py b/qutebrowser/keyinput/modeparsers.py
index 48f3594a5..fe03a9db6 100644
--- a/qutebrowser/keyinput/modeparsers.py
+++ b/qutebrowser/keyinput/modeparsers.py
@@ -86,6 +86,8 @@ class NormalKeyParser(CommandKeyParser):
_partial_timer: Timer to clear partial keypresses.
"""
+ _sequence: keyutils.KeySequence
+
def __init__(self, *, win_id: int,
commandrunner: 'runners.CommandRunner',
parent: QObject = None) -> None:
@@ -154,6 +156,8 @@ class HintKeyParser(basekeyparser.BaseKeyParser):
_last_press: The nature of the last keypress, a LastPress member.
"""
+ _sequence: keyutils.KeySequence
+
def __init__(self, *, win_id: int,
commandrunner: 'runners.CommandRunner',
hintmanager: hints.HintManager,