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 71cd6cc commit 9a5224eCopy full SHA for 9a5224e
mypyc/test-data/irbuild-str.test
@@ -745,9 +745,12 @@ L3:
745
from typing import Final
746
747
constant: Final = "constant"
748
+tuple_of_literals = "tuple", "of", "literals"
749
750
def fold_tuple() -> str:
751
return " ".join((constant, "folded"))
752
+def fold_tuple_var() -> str
753
+ return " ".join(tuple_of_literals)
754
def fold_list() -> str:
755
return " ".join([constant, "folded"])
756
[out]
@@ -756,6 +759,11 @@ def fold_tuple():
759
L0:
757
760
r0 = 'constant folded'
758
761
return r0
762
+def fold_tuple_var():
763
+ r0 :: str
764
+L0:
765
+ r0 = 'tuple of literals'
766
+ return r0
767
def fold_list():
768
r0 :: str
769
0 commit comments