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 ef0a46e commit 60c093fCopy full SHA for 60c093f
mypyc/test-data/irbuild-str.test
@@ -748,8 +748,15 @@ def literal_rhs(x: str) -> bool:
748
return x == literal
749
def literal_lhs(x: str) -> bool:
750
return literal == x
751
+def literal_both() -> bool:
752
+ return literal == "literal"
753
[out]
754
def literal_rhs(x):
755
+ x :: str
756
L0:
757
def literal_lhs(x):
758
759
+L0:
760
+def literal_both():
761
+ r0 :: bool
762
0 commit comments