summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/requirements/requirements-mypy.txt2
-rw-r--r--qutebrowser/keyinput/basekeyparser.py2
-rw-r--r--qutebrowser/utils/log.py2
3 files changed, 2 insertions, 4 deletions
diff --git a/misc/requirements/requirements-mypy.txt b/misc/requirements/requirements-mypy.txt
index aa08cc2b7..243ec140b 100644
--- a/misc/requirements/requirements-mypy.txt
+++ b/misc/requirements/requirements-mypy.txt
@@ -1,6 +1,6 @@
# This file is automatically generated by scripts/dev/recompile_requirements.py
-mypy==0.761
+mypy==0.770
mypy-extensions==0.4.3
# PyQt5==5.11.3
# PyQt5-sip==4.19.19
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
diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py
index 30a399773..922981511 100644
--- a/qutebrowser/utils/log.py
+++ b/qutebrowser/utils/log.py
@@ -105,7 +105,7 @@ def vdebug(self: logging.Logger,
"""
if self.isEnabledFor(VDEBUG_LEVEL):
# pylint: disable=protected-access
- self._log(VDEBUG_LEVEL, msg, args, **kwargs) # type: ignore
+ self._log(VDEBUG_LEVEL, msg, args, **kwargs)
# pylint: enable=protected-access