From d51c41fa98424b1dc1bf8f02ea523dcc5464ec49 Mon Sep 17 00:00:00 2001 From: Patrick Chan <14689947+rtm010@users.noreply.github.com> Date: Mon, 18 May 2020 23:08:01 +1000 Subject: [PATCH] BUG: Fix validation script not printing docstring is correct (#34228) --- scripts/validate_docstrings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index 051bd5b9761ae..7971379ca60c1 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -360,7 +360,7 @@ def header(title, width=80, char="#"): sys.stderr.write("\tExamples do not pass tests\n") continue sys.stderr.write(f"\t{err_desc}\n") - elif result["errors"]: + else: sys.stderr.write(f'Docstring for "{func_name}" correct. :)\n') if result["examples_errs"]: