diff options
author | Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | 2023-05-15 20:51:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 20:51:58 +0200 |
commit | 0a6c21bfab8237431c9f5198068451b243e91448 (patch) | |
tree | 8355cd667c86585e6f8b42b05675b49f1e6951ab /pylint/checkers | |
parent | f168ad1fa902ddcb024b9824993d250d5d1348ff (diff) | |
download | pylint-git-0a6c21bfab8237431c9f5198068451b243e91448.tar.gz |
Fix a false negative for ``too-many-arguments`` and positional-only and keyword-only arguments (#8674)
Closes #8667
Diffstat (limited to 'pylint/checkers')
-rw-r--r-- | pylint/checkers/design_analysis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/design_analysis.py b/pylint/checkers/design_analysis.py index 701615d89..c8a53d32b 100644 --- a/pylint/checkers/design_analysis.py +++ b/pylint/checkers/design_analysis.py @@ -506,7 +506,7 @@ class MisdesignChecker(BaseChecker): # init branch and returns counters self._returns.append(0) # check number of arguments - args = node.args.args + args = node.args.args + node.args.posonlyargs + node.args.kwonlyargs ignored_argument_names = self.linter.config.ignored_argument_names if args is not None: ignored_args_num = 0 |