Skip to content

Commit 8f89ec5

Browse files
adam-grant-hendryDanielNoord
authored andcommitted
fix(pre-commit): fix pre-commit errors
Also remove lookahead from `re_param_line` as tests pass without it.
1 parent 4ccad0d commit 8f89ec5

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Using "default" in parameter signatures of NumPy doctrings emitted a `missing-param`
22
error.
33

4-
Closes #6211
4+
Closes #6211

doc/whatsnew/fragments/7360.false_negative

Lines changed: 0 additions & 1 deletion
This file was deleted.

pylint/extensions/_check_docs_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,6 @@ class NumpyDocstring(GoogleDocstring):
737737
\s* (?P<param_name>\*{{0,2}}\w+)(\s?(:|\n)) # identifier with potential asterisks
738738
\s*
739739
(?P<param_type>
740-
(?!=\n)
741740
(
742741
({GoogleDocstring.re_multiple_type}) # default type declaration
743742
(,\s+optional|,\s+{re_default_param})? # optional 'optional' indication

0 commit comments

Comments
 (0)