You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test-data/unit/pythoneval.test
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1609,9 +1609,9 @@ reveal_type(Foo.Bar.value) # this should probably not be "Foo" https://typing.r
1609
1609
reveal_type(Foo.Baz)
1610
1610
reveal_type(Foo.Baz.value)
1611
1611
[out]
1612
-
_testEnumValueWithPlaceholderNodeType.py:5: error: Type annotations are not allowed for enum members
1612
+
_testEnumValueWithPlaceholderNodeType.py:5: error: Enum members must be left unannotated
1613
1613
_testEnumValueWithPlaceholderNodeType.py:5: error: Incompatible types in assignment (expression has type "<typing special form>", variable has type "Foo")
1614
-
_testEnumValueWithPlaceholderNodeType.py:6: error: Type annotations are not allowed for enum members
1614
+
_testEnumValueWithPlaceholderNodeType.py:6: error: Enum members must be left unannotated
1615
1615
_testEnumValueWithPlaceholderNodeType.py:6: error: Name "Missing" is not defined
1616
1616
_testEnumValueWithPlaceholderNodeType.py:8: note: Revealed type is "Literal[_testEnumValueWithPlaceholderNodeType.Foo.Bar]?"
1617
1617
_testEnumValueWithPlaceholderNodeType.py:9: note: Revealed type is "_testEnumValueWithPlaceholderNodeType.Foo"
0 commit comments