Skip to content

Commit

Permalink
fix(pre-commit): fix pre-commit errors
Browse files Browse the repository at this point in the history
Also remove lookahead from `re_param_line` as tests pass without it.
  • Loading branch information
adam-grant-hendry authored and DanielNoord committed Sep 4, 2022
1 parent 4ccad0d commit 8f89ec5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 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
1 change: 0 additions & 1 deletion doc/whatsnew/fragments/7360.false_negative

This file was deleted.

1 change: 0 additions & 1 deletion pylint/extensions/_check_docs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ class NumpyDocstring(GoogleDocstring):
\s* (?P<param_name>\*{{0,2}}\w+)(\s?(:|\n)) # identifier with potential asterisks
\s*
(?P<param_type>
(?!=\n)
(
({GoogleDocstring.re_multiple_type}) # default type declaration
(,\s+optional|,\s+{re_default_param})? # optional 'optional' indication
Expand Down

0 comments on commit 8f89ec5

Please sign in to comment.