We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83c4830 commit 3ac46bfCopy full SHA for 3ac46bf
numpydoc/validate.py
@@ -622,8 +622,12 @@ def validate(obj_name):
622
623
# check param with default in sig is documented as optional
624
for param in doc.optional_signature_parameters_names:
625
- type = doc.parameter_type(param)
626
- if "optional" not in type and "{" not in type and "default" not in type:
+ param_type = doc.parameter_type(param)
+ if (
627
+ "optional" not in param_type
628
+ and "{" not in param_type
629
+ and "default" not in param_type
630
+ ):
631
errs.append(error("PR11", param_name=param))
632
633
if doc.is_function_or_method:
0 commit comments