Skip to content

Commit 1e57307

Browse files
Update for_helpers.py
1 parent 13c0533 commit 1e57307

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
@@ -1192,7 +1192,7 @@ def gen_condition(self) -> None:
11921192
# ForIterable
11931193
gens = self.gens
11941194

1195-
def check_type(obj: Any, typ: type[Any]) -> bool:
1195+
def check_type(obj: Any, typ: type[ForGenerator]) -> bool:
11961196
# ForEnumerate gen_condition is as fast as it's underlying generator's
11971197
return (
11981198
isinstance(obj, typ) or isinstance(obj, ForEnumerate) and isinstance(obj.main_gen, typ)

0 commit comments

Comments
 (0)