From 0dade18f43cf5c015773d461ccff478f156179b5 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 22 Mar 2018 20:52:44 -0700 Subject: [PATCH] Fix yamllinter handling of tuple assignment. --- test/sanity/yamllint/yamllinter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/sanity/yamllint/yamllinter.py b/test/sanity/yamllint/yamllinter.py index 06ff6fec74..e9a4bb95a9 100755 --- a/test/sanity/yamllint/yamllinter.py +++ b/test/sanity/yamllint/yamllinter.py @@ -120,6 +120,9 @@ class YamlChecker(object): def check_assignment(statement, doc_types=None): """Check the given statement for a documentation assignment.""" for target in statement.targets: + if isinstance(target, ast.Tuple): + continue + if doc_types and target.id not in doc_types: continue