Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 27, 2022
1 parent 3aaba09 commit 45f0035
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/whatsnew/fragments/6211.false_negative
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Using "default" in parameter signatures of NumPy doctrings emitted a `missing-param`
error.

Closes #6211
Closes #6211
2 changes: 1 addition & 1 deletion doc/whatsnew/fragments/7360.false_negative
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Add your info here
Add your info here
12 changes: 6 additions & 6 deletions pylint/extensions/_check_docs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,15 +802,15 @@ def match_param_docs(self) -> tuple[set[str], set[str]]:

# check if parameter has description only
re_only_desc = re.match(r"\s*(\*{0,2}\w+)\s*:?\n\s*\w*$", entry)
print(f're_only_desc: {re_only_desc}')
print(f"re_only_desc: {re_only_desc}")
if re_only_desc:
param_name = match.group('param_name')
param_desc = match.group('param_type')
param_name = match.group("param_name")
param_desc = match.group("param_type")
param_type = None
else:
param_name = match.group('param_name')
param_type = match.group('param_type')
param_desc = match.group('param_desc')
param_name = match.group("param_name")
param_type = match.group("param_type")
param_desc = match.group("param_desc")

if param_type:
params_with_type.add(param_name)
Expand Down

0 comments on commit 45f0035

Please sign in to comment.