diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-03-21 17:56:48 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-03-21 17:56:48 +0100 |
commit | 3f8b9520c2c27d9efb484278925315bb9a0f029f (patch) | |
tree | 6c372430d03736c1c84cf0a308adf2ff0187faa2 /qutebrowser/keyinput/basekeyparser.py | |
parent | b2f48b5839efbf33cb4896067ce6a934faabd8f0 (diff) | |
download | qutebrowser-3f8b9520c2c27d9efb484278925315bb9a0f029f.tar.gz qutebrowser-3f8b9520c2c27d9efb484278925315bb9a0f029f.zip |
Upgrade to mypy 0.770
This removes some isinstance asserts which are outdated. Mypy should be able to
alert us in those cases anyways.
Diffstat (limited to 'qutebrowser/keyinput/basekeyparser.py')
-rw-r--r-- | qutebrowser/keyinput/basekeyparser.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/qutebrowser/keyinput/basekeyparser.py b/qutebrowser/keyinput/basekeyparser.py index 0f8ec421a..536a7e6ee 100644 --- a/qutebrowser/keyinput/basekeyparser.py +++ b/qutebrowser/keyinput/basekeyparser.py @@ -208,7 +208,6 @@ class BaseKeyParser(QObject): - The found binding with Match.definitive. """ assert sequence - assert not isinstance(sequence, str) return self.bindings.matches(sequence) def _match_without_modifiers( @@ -340,7 +339,6 @@ class BaseKeyParser(QObject): self.bindings = BindingTrie() for key, cmd in config.key_instance.get_bindings_for(modename).items(): - assert not isinstance(key, str), key assert cmd self.bindings[key] = cmd |