summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-03-23 16:36:56 +0100
committerFlorian Bruhin <me@the-compiler.org>2023-03-23 17:32:39 +0100
commit485f1c5fbc54ecf40c45e73216f32b8d870000cb (patch)
tree460dfb1fcf922faed56a47862805fc5b4ff8cc6f
parent397818cfa36adc66a7c6633a3f99da496a2129bc (diff)
downloadqutebrowser-485f1c5fbc54ecf40c45e73216f32b8d870000cb.tar.gz
qutebrowser-485f1c5fbc54ecf40c45e73216f32b8d870000cb.zip
Ignore pylint invalid-name false-positives
See https://github.com/PyCQA/pylint/issues/8487
-rw-r--r--qutebrowser/keyinput/keyutils.py3
-rw-r--r--qutebrowser/misc/objects.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py
index 9a0deffc5..652477663 100644
--- a/qutebrowser/keyinput/keyutils.py
+++ b/qutebrowser/keyinput/keyutils.py
@@ -68,7 +68,8 @@ _MODIFIER_MAP = {
}
try:
- _NIL_KEY: Union[Qt.Key, int] = Qt.Key(0)
+ # WORKAROUND for https://github.com/PyCQA/pylint/issues/8487
+ _NIL_KEY: Union[Qt.Key, int] = Qt.Key(0) # pylint: disable=invalid-name
except ValueError:
# WORKAROUND for
# https://www.riverbankcomputing.com/pipermail/pyqt/2022-April/044607.html
diff --git a/qutebrowser/misc/objects.py b/qutebrowser/misc/objects.py
index 63a9cb2dd..6dcecaf93 100644
--- a/qutebrowser/misc/objects.py
+++ b/qutebrowser/misc/objects.py
@@ -43,6 +43,8 @@ class NoBackend:
raise AssertionError("No backend set!")
+# WORKAROUND for https://github.com/PyCQA/pylint/issues/8487
+# pylint: disable-next=invalid-name
backend: Union['usertypes.Backend', NoBackend] = NoBackend()
commands: Dict[str, 'command.Command'] = {}
debug_flags: Set[str] = set()