summaryrefslogtreecommitdiff
path: root/qutebrowser/keyinput/keyutils.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-09-10 12:34:36 +0200
committerFlorian Bruhin <me@the-compiler.org>2019-09-10 12:46:47 +0200
commit1a34f284a95448f1377983ecace1248fcf04bf7e (patch)
treee85c8a6c4f1acd15ad0a6af305f15c770081656f /qutebrowser/keyinput/keyutils.py
parent8a40c4a07a644a5717b4b5fe7992ded21c0d6463 (diff)
downloadqutebrowser-1a34f284a95448f1377983ecace1248fcf04bf7e.tar.gz
qutebrowser-1a34f284a95448f1377983ecace1248fcf04bf7e.zip
Complete type annotation
Diffstat (limited to 'qutebrowser/keyinput/keyutils.py')
-rw-r--r--qutebrowser/keyinput/keyutils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py
index 6aa4e37e6..f6ab914ec 100644
--- a/qutebrowser/keyinput/keyutils.py
+++ b/qutebrowser/keyinput/keyutils.py
@@ -581,7 +581,10 @@ class KeySequence:
keys = [key & ~modifiers for key in self._iter_keys()]
return self.__class__(*keys)
- def with_mappings(self, mappings: typing.Mapping):
+ def with_mappings(
+ self,
+ mappings: typing.Mapping['KeySequence', 'KeySequence']
+ ) -> 'KeySequence':
"""Get a new KeySequence with the given mappings applied."""
keys = []
for key in self._iter_keys():