mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-13 08:18:56 +08:00
Fix an issue, because sync_comp_for exists now
This commit is contained in:
1 parent
a5686d6cda
commit
18cbeb1a3d
1 file changed
+1
-1
@@ -757,7 +757,7 @@ class _ArglistRule(SyntaxRule):
|
|||||||
def is_issue(self, node):
|
def is_issue(self, node):
|
||||||
first_arg = node.children[0]
|
first_arg = node.children[0]
|
||||||
if first_arg.type == 'argument' \
|
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)
|
# e.g. foo(x for x in [], b)
|
||||||
return len(node.children) >= 2
|
return len(node.children) >= 2
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user