@@ -39,3 +39,56 @@ async def _async_private_func3(param1): # [missing-raises-doc]
39
39
async def async_public_func1 (param1 ): # [missing-any-param-doc]
40
40
"""This is a test docstring without params"""
41
41
print (param1 )
42
+
43
+
44
+ def differing_param_doc (par1 : int ) -> int : # [differing-param-doc]
45
+ """This is a test docstring documenting one non-existing param
46
+
47
+ :param par1: some param
48
+ :param param: some param
49
+ :return: the sum of the params
50
+ """
51
+
52
+ return par1
53
+
54
+
55
+ def differing_param_doc_kwords_only (* , par1 : int ) -> int : # [differing-param-doc]
56
+ """This is a test docstring documenting one non-existing param
57
+
58
+ :param par1: some param
59
+ :param param: some param
60
+ :return: the sum of the params
61
+ """
62
+
63
+ return par1
64
+
65
+
66
+ def missing_type_doc (par1 ) -> int : # [missing-type-doc]
67
+ """This is a test docstring params where the type is not specified
68
+
69
+ :param par1: some param
70
+ :return: the param
71
+ """
72
+
73
+ return par1
74
+
75
+
76
+ def missing_type_doc_kwords_only (* , par1 ) -> int : # [missing-type-doc]
77
+ """This is a test docstring params where the type is not specified
78
+
79
+ :param par1: some param
80
+ :return: the param
81
+ """
82
+
83
+ return par1
84
+
85
+
86
+ def params_are_documented (par1 : int , * , par2 : int ) -> int :
87
+ """This is a test docstring params where nothing is raised as it is all documented
88
+
89
+ :param par1: some param
90
+ :param par2: some other param
91
+ :return: the sum of params
92
+ """
93
+
94
+ return par1 + par2
0 commit comments