summaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-10-18 22:01:27 +0200
committerGitHub <noreply@github.com>2021-10-18 22:01:27 +0200
commitcd5838c14c58d6904433e9037ec20071eb897185 (patch)
treea98e02ad107915e1a6db624c784e99ecbecdcf00 /tests/functional
parent1daee40d6f1cf3d379396dc272c123d987ad4cdd (diff)
downloadpylint-git-cd5838c14c58d6904433e9037ec20071eb897185.tar.gz
Fix asterisks parsing of ``mising-param-doc`` (#5175)
Closes #3733
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/m/missing/missing_param_doc.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/functional/m/missing/missing_param_doc.py b/tests/functional/m/missing/missing_param_doc.py
index 37c85b058..75f813578 100644
--- a/tests/functional/m/missing/missing_param_doc.py
+++ b/tests/functional/m/missing/missing_param_doc.py
@@ -104,3 +104,39 @@ def foobar12(arg1, arg2, arg3): #[missing-param-doc, missing-type-doc]
arg3
"""
print(arg1, arg2, arg3)
+
+def foobar13(arg1, *args, arg3=";"):
+ """Description of the function
+
+ Parameters
+ ----------
+ arg1 : str
+ Path to the input.
+ *args :
+ Relevant parameters.
+ arg3 : str, optional
+ File separator.
+ """
+ print(arg1, args, arg3)
+
+def foobar14(arg1, *args):
+ """Description of the function
+
+ Parameters
+ ----------
+ arg1 : str
+ Path to the input.
+ *args :
+ Relevant parameters.
+ """
+ print(arg1, args)
+
+def foobar15(*args):
+ """Description of the function
+
+ Parameters
+ ----------
+ *args :
+ Relevant parameters.
+ """
+ print(args)