diff options
author | Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> | 2023-04-15 03:53:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 21:53:00 -0400 |
commit | 2db55f6a48962aa7ff4cc3b0ee4b37177f605bdc (patch) | |
tree | b0dcb79cbd729dc956670f607a8a8be5db0f850e /pylint | |
parent | 4c0a32334d9a5b73dcfe3f56868bb933da8e9a3f (diff) | |
download | pylint-git-2db55f6a48962aa7ff4cc3b0ee4b37177f605bdc.tar.gz |
Fix false negative for no-value-for-parameter: positional-only args and **kwargs (#8575)
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/checkers/typecheck.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py index 6dac7ede5..19bdb39aa 100644 --- a/pylint/checkers/typecheck.py +++ b/pylint/checkers/typecheck.py @@ -1569,6 +1569,11 @@ accessed. Python regular expressions are accepted.", node=node, args=(keyword, callable_name), ) + elif ( + keyword in [arg.name for arg in called.args.posonlyargs] + and called.args.kwarg + ): + pass else: parameters[i] = (parameters[i][0], True) elif keyword in kwparams: |