Skip to content

Commit 21ae3cb

Browse files
Update for_helpers.py
1 parent c6b41b7 commit 21ae3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ def check_type(obj: Any, typ: type[ForGenerator]) -> bool:
12921292

12931293
# this is a failsafe for ForHelper classes which might have been added after this commit but not added to this function's code
12941294
leftovers = [
1295-
(g, block) for g, block in zip(gens, cond_blocks) if g not in ordered + for_iterable
1295+
g_and_block for g_and_block in zip(gens, cond_blocks) if g_and_block not in ordered + for_iterable
12961296
]
12971297

12981298
gens_and_blocks = ordered + leftovers + for_iterable

0 commit comments

Comments
 (0)