File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ y: Final[float] = int()
1111z: Final[int] = int()
1212bad: 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]? "
1515reveal_type(y) # N: Revealed type is "builtins.float"
1616reveal_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")
2727class 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]? "
3030reveal_type(D.y) # N: Revealed type is "builtins.float"
3131reveal_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]? "
3333reveal_type(D().y) # N: Revealed type is "builtins.float"
3434reveal_type(D().z) # N: Revealed type is "builtins.int"
3535[out]
You can’t perform that action at this time.
0 commit comments