summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2023-04-10 21:07:57 +0200
committerFlorian Bruhin <me@the-compiler.org>2023-04-10 21:07:57 +0200
commitf6f29692e4aed7d84f0190ab867e8cfba2dcf470 (patch)
tree2644ccc96be974406d90fcc150a887d1edf12731
parent98f25a6dbb55a92c862804350583d39389fa24b9 (diff)
downloadqutebrowser-f6f29692e4aed7d84f0190ab867e8cfba2dcf470.tar.gz
qutebrowser-f6f29692e4aed7d84f0190ab867e8cfba2dcf470.zip
Revert "Ignore pylint invalid-name false-positives"
This reverts commit 485f1c5fbc54ecf40c45e73216f32b8d870000cb.
-rw-r--r--qutebrowser/keyinput/keyutils.py3
-rw-r--r--qutebrowser/misc/objects.py2
2 files changed, 1 insertions, 4 deletions
diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py
index 652477663..9a0deffc5 100644
--- a/qutebrowser/keyinput/keyutils.py
+++ b/qutebrowser/keyinput/keyutils.py
@@ -68,8 +68,7 @@ _MODIFIER_MAP = {
}
try:
- # WORKAROUND for https://github.com/PyCQA/pylint/issues/8487
- _NIL_KEY: Union[Qt.Key, int] = Qt.Key(0) # pylint: disable=invalid-name
+ _NIL_KEY: Union[Qt.Key, int] = Qt.Key(0)
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 6dcecaf93..63a9cb2dd 100644
--- a/qutebrowser/misc/objects.py
+++ b/qutebrowser/misc/objects.py
@@ -43,8 +43,6 @@ 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()