Skip to content

Commit

Permalink
fix: Retrieve number of parameters to use for min-n-params check from…
Browse files Browse the repository at this point in the history
… signature instead of docstring
  • Loading branch information
JanEricNitschke committed Jan 22, 2025
1 parent ae1440a commit cc2ef4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymend/docstring_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def _adjust_parameters(
)
elif (
settings.force_params
and len(params_from_doc) >= settings.force_params_min_n_params
and len(params_from_sig) >= settings.force_params_min_n_params
and self.length >= settings.force_meta_min_func_length
) or not self.docstring:
self.issues.append(f"Missing parameter `{name}`.")
Expand Down

0 comments on commit cc2ef4c

Please sign in to comment.