From 18cbeb1a3d2c9c75281498d50ed2b255e8cd6b79 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 5 Apr 2019 16:27:17 +0200 Subject: [PATCH] Fix an issue, because sync_comp_for exists now --- parso/python/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parso/python/errors.py b/parso/python/errors.py index 956b0c0..71f3b88 100644 --- a/parso/python/errors.py +++ b/parso/python/errors.py @@ -757,7 +757,7 @@ class _ArglistRule(SyntaxRule): def is_issue(self, node): first_arg = node.children[0] if first_arg.type == 'argument' \ - and first_arg.children[1].type == 'comp_for': + and first_arg.children[1].type in ('comp_for', 'sync_comp_for'): # e.g. foo(x for x in [], b) return len(node.children) >= 2 else: