summaryrefslogtreecommitdiff
path: root/pylint/checkers/method_args.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/method_args.py')
-rw-r--r--pylint/checkers/method_args.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pylint/checkers/method_args.py b/pylint/checkers/method_args.py
index 37db2fa79..59083fa25 100644
--- a/pylint/checkers/method_args.py
+++ b/pylint/checkers/method_args.py
@@ -111,6 +111,8 @@ class MethodArgsChecker(BaseChecker):
and inferred_func.args.posonlyargs
):
return
+ if inferred_func.args.kwarg:
+ return
pos_args = [a.name for a in inferred_func.args.posonlyargs]
kws = [k.arg for k in node.keywords if k.arg in pos_args]
if not kws: