Skip to content

Commit e9f0451

Browse files
committed
Update for_helpers.py
1 parent 7eb67a3 commit e9f0451

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mypyc/irbuild/for_helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,10 @@ def get_expr_length(expr: Expression) -> int | None:
12111211
and expr.node.has_explicit_value
12121212
):
12131213
return len(expr.node.final_value)
1214-
# TODO: extend this, passing length of listcomp and genexp should have worthwhile performance boost
1214+
# TODO: extend this, passing length of listcomp and genexp should have worthwhile
1215+
# performance boost and can be (sometimes) figured out pretty easily. set and dict
1216+
# comps *can* be done as well but will need special logic to consider the possibility
1217+
# of key conflicts
12151218
return None
12161219

12171220

0 commit comments

Comments
 (0)