Skip to content

Commit 71cd6cc

Browse files
fix comments
1 parent 4bcd1b9 commit 71cd6cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
8383
if isinstance(folded_callee, str):
8484
# str.join
8585
if callee.name == "join" and len(args := expr.args) == 1:
86-
# TODO extend this to work with rtuples comprised of known literal values
8786
arg = args[0]
8887
if isinstance(arg, (ListExpr, TupleExpr)):
8988
folded_items = constant_fold_container_expr(builder, arg)
@@ -100,7 +99,7 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
10099

101100
# builtins.bytes methods
102101
elif isinstance(folded_callee, bytes):
103-
# str.join
102+
# bytes.join
104103
if (
105104
callee.name == "join"
106105
and len(args := expr.args) == 1

0 commit comments

Comments
 (0)