summaryrefslogtreecommitdiff
path: root/pylint
diff options
context:
space:
mode:
authorMark Byrne <31762852+mbyrnepr2@users.noreply.github.com>2022-05-20 20:56:38 +0200
committerGitHub <noreply@github.com>2022-05-20 20:56:38 +0200
commit9c3a2fc40e548730f5d0084b91391500c2ac6eb2 (patch)
tree13112fe8af5c589fbff26aa1a5ab601348dcd276 /pylint
parente830eed65d9ce18a8aa98d7568d58110a79b5c9a (diff)
downloadpylint-git-9c3a2fc40e548730f5d0084b91391500c2ac6eb2.tar.gz
Fix ``unexpected-special-method-signature`` false positive for ``__init_subclass__`` methods with one or more arguments. (#6654)
Closes #6644
Diffstat (limited to 'pylint')
-rw-r--r--pylint/checkers/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index 30e04d2d5..7db5ebb11 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -69,7 +69,7 @@ KEYS_METHOD = "keys"
# although it's best to implement it in order to accept
# all of them.
_SPECIAL_METHODS_PARAMS = {
- None: ("__new__", "__init__", "__call__"),
+ None: ("__new__", "__init__", "__call__", "__init_subclass__"),
0: (
"__del__",
"__repr__",
@@ -107,7 +107,6 @@ _SPECIAL_METHODS_PARAMS = {
"__anext__",
"__fspath__",
"__subclasses__",
- "__init_subclass__",
),
1: (
"__format__",