Skip to content

Commit 45f0035

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3aaba09 commit 45f0035

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
+1-1
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
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add your info here
1+
Add your info here

pylint/extensions/_check_docs_utils.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -802,15 +802,15 @@ def match_param_docs(self) -> tuple[set[str], set[str]]:
802802

803803
# check if parameter has description only
804804
re_only_desc = re.match(r"\s*(\*{0,2}\w+)\s*:?\n\s*\w*$", entry)
805-
print(f're_only_desc: {re_only_desc}')
805+
print(f"re_only_desc: {re_only_desc}")
806806
if re_only_desc:
807-
param_name = match.group('param_name')
808-
param_desc = match.group('param_type')
807+
param_name = match.group("param_name")
808+
param_desc = match.group("param_type")
809809
param_type = None
810810
else:
811-
param_name = match.group('param_name')
812-
param_type = match.group('param_type')
813-
param_desc = match.group('param_desc')
811+
param_name = match.group("param_name")
812+
param_type = match.group("param_type")
813+
param_desc = match.group("param_desc")
814814

815815
if param_type:
816816
params_with_type.add(param_name)

0 commit comments

Comments
 (0)