We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5dcffc commit 1455270Copy full SHA for 1455270
mypyc/irbuild/for_helpers.py
@@ -258,7 +258,7 @@ def sequence_from_generator_preallocate_helper(
258
get_item_ops: list[LoadLiteral | TupleGet]
259
if all(isinstance(typ, LiteralType) for typ in proper_types):
260
get_item_ops = [
261
- LoadLiteral(cast(LiteralType, typ.value), object_rprimitive)
+ LoadLiteral(cast(LiteralType, typ).value, object_rprimitive)
262
for typ in proper_types
263
]
264
0 commit comments