From 68c8e304a4e2de98a8a7f6ede85c827732903881 Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Sat, 27 Jul 2019 13:03:57 +0200 Subject: [PATCH] Fix access tuple element by index Fix #27622 --- 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 37623d32db685..94b30a92dbd68 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -757,7 +757,7 @@ def get_validation_data(doc): if doc.method_returns_something: errs.append(error("RT01")) else: - if len(doc.returns) == 1 and doc.returns[0].name: + if len(doc.returns) == 1 and doc.returns[0][1]: errs.append(error("RT02")) for name_or_type, type_, desc in doc.returns: if not desc: