Skip to content

Commit 714aaa4

Browse files
Update check-final.test
1 parent 7415fe9 commit 714aaa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-data/unit/check-final.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ y: Final[float] = int()
1111
z: Final[int] = int()
1212
bad: Final[str] = int() # E: Incompatible types in assignment (expression has type "int", variable has type "str")
1313

14-
reveal_type(x) # N: Revealed type is "builtins.int"
14+
reveal_type(x) # N: Revealed type is "Literal[0]?"
1515
reveal_type(y) # N: Revealed type is "builtins.float"
1616
reveal_type(z) # N: Revealed type is "builtins.int"
1717
[out]
@@ -26,10 +26,10 @@ class C:
2626
bad: Final[str] = int() # E: Incompatible types in assignment (expression has type "int", variable has type "str")
2727
class D(C): pass
2828

29-
reveal_type(D.x) # N: Revealed type is "builtins.int"
29+
reveal_type(D.x) # N: Revealed type is "Literal[0]?"
3030
reveal_type(D.y) # N: Revealed type is "builtins.float"
3131
reveal_type(D.z) # N: Revealed type is "builtins.int"
32-
reveal_type(D().x) # N: Revealed type is "builtins.int"
32+
reveal_type(D().x) # N: Revealed type is "Literal[0]?"
3333
reveal_type(D().y) # N: Revealed type is "builtins.float"
3434
reveal_type(D().z) # N: Revealed type is "builtins.int"
3535
[out]

0 commit comments

Comments
 (0)