We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5efa1d1 commit 86a7004Copy full SHA for 86a7004
numpydoc/validate.py
@@ -570,11 +570,10 @@ def validate(func_name):
570
if not desc:
571
errs.append(error("RT03"))
572
else:
573
- desc = "\n".join(desc)
574
- if desc[0].isalpha() and not desc[0].isupper():
+ if desc[0][0].isalpha() and not desc[0][0].isupper():
575
errs.append(error("RT04"))
576
- if not desc.endswith(".") and \
577
- not desc.split("\n")[-1].startswith(IGNORE_STARTS):
+ if not desc[-1].endswith(".") and \
+ not desc[-1].startswith(IGNORE_STARTS):
578
errs.append(error("RT05"))
579
580
if not doc.yields and "yield" in doc.method_source:
0 commit comments