8000
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 dff87cd commit f1b8872Copy full SHA for f1b8872
test-data/unit/check-expressions.test
@@ -1605,6 +1605,14 @@ reveal_type("foo") # E: Argument 1 to "reveal_type" has incompatible type "str";
1605
reveal_type = 1
1606
1 + "foo" # E: Unsupported operand types for + ("int" and "str")
1607
1608
+[case testRevealForward]
1609
+def f() -> None:
1610
+ reveal_type(x)
1611
+x = 1 + 1
1612
+[out]
1613
+main: note: In function "f":
1614
+main:2: error: Revealed type is 'builtins.int'
1615
+
1616
[case testEqNone]
1617
None == None
1618
[builtins fixtures/ops.pyi]
0 commit comments