Skip to content

Commit e0e2cab

Browse files
committed
MAINT: Unify
1 parent e809788 commit e0e2cab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

numpydoc/validate.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,16 @@ def validate(func_name):
545545
wrong_type=wrong_type,
546546
)
547547
)
548-
this_desc = doc.parameter_desc(param)
549-
if not "".join(this_desc):
548+
desc = doc.parameter_desc(param)
549+
if not "".join(desc):
550550
errs.append(error("PR07", param_name=param))
551551
else:
552-
if this_desc[0][0].isalpha() and not this_desc[0][0].isupper():
552+
if desc[0][0].isalpha() and not desc[0][0].isupper():
553553
errs.append(error("PR08", param_name=param))
554554
# Not ending in "." is only an error if the last bit is not
555555
# indented (e.g., quote or code block)
556-
if this_desc[-1][-1] != "." and \
557-
not this_desc[-1].startswith(IGNORE_STARTS):
556+
if not desc[-1].endswith(".") and \
557+
not desc[-1].startswith(IGNORE_STARTS):
558558
errs.append(error("PR09", param_name=param))
559559

560560
if doc.is_function_or_method:

0 commit comments

Comments
 (0)