Fix yamllinter handling of tuple assignment.

pull/37819/head
Matt Clay 6 years ago
parent 503f907b63
commit 0dade18f43

@ -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

Loading…
Cancel
Save