summaryrefslogtreecommitdiff
path: root/pylint/extensions/check_docs.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-01-09 13:36:45 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2016-01-09 13:36:45 +0200
commitd2a7144d29a6576f79c0f8fba4ff4707447c3f79 (patch)
tree2a5cc7efdd3d8c4220cd5cd0947c0dd14708c092 /pylint/extensions/check_docs.py
parent5416db5a9201e3930068efda335e7040273d95fc (diff)
downloadpylint-git-d2a7144d29a6576f79c0f8fba4ff4707447c3f79.tar.gz
Take in account kwonlyargs when verifying that arguments are defined
Closes #745
Diffstat (limited to 'pylint/extensions/check_docs.py')
-rw-r--r--pylint/extensions/check_docs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/extensions/check_docs.py b/pylint/extensions/check_docs.py
index fc014f402..8f529123a 100644
--- a/pylint/extensions/check_docs.py
+++ b/pylint/extensions/check_docs.py
@@ -174,6 +174,7 @@ class ParamDocChecker(BaseChecker):
# Collect the function arguments.
expected_argument_names = [arg.name for arg in arguments_node.args]
+ expected_argument_names += [arg.name for arg in arguments_node.kwonlyargs]
not_needed_type_in_docstring = (
self.not_needed_param_in_docstring.copy())
@@ -183,7 +184,6 @@ class ParamDocChecker(BaseChecker):
if arguments_node.kwarg is not None:
expected_argument_names.append(arguments_node.kwarg)
not_needed_type_in_docstring.add(arguments_node.kwarg)
-
params_with_doc, params_with_type = self.match_param_docs(doc)
# Tolerate no parameter documentation at all.