diff --git a/src/flake8_comprehensions.py b/src/flake8_comprehensions.py index 5ca4e80..aceda0a 100644 --- a/src/flake8_comprehensions.py +++ b/src/flake8_comprehensions.py @@ -296,6 +296,7 @@ def run(self): or ( isinstance(node.elt, ast.Tuple) and isinstance(node.generators[0].target, ast.Tuple) + and len(node.elt.elts) == len(node.generators[0].target.elts) and all( isinstance(a, ast.Name) and isinstance(b, ast.Name)