Skip to content

Commit ed9b194

Browse files
Update check-final.test
1 parent 82391ee commit ed9b194

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test-data/unit/check-final.test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,8 +1340,9 @@ class S9(S2, S4): # E: Class "S9" has incompatible disjoint bases
13401340
[case testFinalJoin]
13411341
from typing import Final
13421342

1343-
x: Final = " ".join(("hello","my","name","is","joe"))
1344-
y: Final = " ".join(["hello","joe","my","name","is","moe"])
1343+
hello: Final = "hello"
1344+
x: Final = " ".join((hello,"my","name","is","joe"))
1345+
y: Final = " ".join([hello,"joe","my","name","is","moe"])
13451346

13461347
reveal_type(x) # N: Revealed type is "Literal['hello my name is joe']?"
13471348
reveal_type(y) # N: Revealed type is "Literal['hello joe my name is moe']?"

0 commit comments

Comments
 (0)