Skip to content

Commit 1455270

Browse files
Update for_helpers.py
1 parent b5dcffc commit 1455270

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
@@ -258,7 +258,7 @@ def sequence_from_generator_preallocate_helper(
258258
get_item_ops: list[LoadLiteral | TupleGet]
259259
if all(isinstance(typ, LiteralType) for typ in proper_types):
260260
get_item_ops = [
261-
LoadLiteral(cast(LiteralType, typ.value), object_rprimitive)
261+
LoadLiteral(cast(LiteralType, typ).value, object_rprimitive)
262262
for typ in proper_types
263263
]
264264

0 commit comments

Comments
 (0)