1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix yamllinter handling of tuple assignment.

This commit is contained in:
Matt Clay 2018-03-22 20:52:44 -07:00
parent 503f907b63
commit 0dade18f43

View file

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