@@ -1632,8 +1632,8 @@ def foo(x: T) -> T:
1632
1632
return x
1633
1633
[out]
1634
1634
_testTypeAliasWithNewStyleUnion.py:5: note: Revealed type is "typing._SpecialForm"
1635
- _testTypeAliasWithNewStyleUnion.py:25: note: Revealed type is "Union[ type[builtins.int], builtins.str] "
1636
- _testTypeAliasWithNewStyleUnion.py:28: note: Revealed type is "Union[ type[builtins.int], builtins.str] "
1635
+ _testTypeAliasWithNewStyleUnion.py:25: note: Revealed type is "type[builtins.int] | builtins.str"
1636
+ _testTypeAliasWithNewStyleUnion.py:28: note: Revealed type is "type[builtins.int] | builtins.str"
1637
1637
1638
1638
[case testTypeAliasWithNewStyleUnionInStub]
1639
1639
import m
@@ -1711,7 +1711,7 @@ reveal_type(e.foo)
1711
1711
reveal_type(E.Y.foo)
1712
1712
[out]
1713
1713
_testEnumNameWorkCorrectlyOn311.py:11: note: Revealed type is "builtins.str"
1714
- _testEnumNameWorkCorrectlyOn311.py:12: note: Revealed type is "Union[ Literal[1]?, Literal[2]?] "
1714
+ _testEnumNameWorkCorrectlyOn311.py:12: note: Revealed type is "Literal[1]? | Literal[2]?"
1715
1715
_testEnumNameWorkCorrectlyOn311.py:13: note: Revealed type is "Literal['X']?"
1716
1716
_testEnumNameWorkCorrectlyOn311.py:14: note: Revealed type is "builtins.int"
1717
1717
_testEnumNameWorkCorrectlyOn311.py:15: note: Revealed type is "builtins.int"
@@ -1780,9 +1780,9 @@ WrongEllipsis = tuple[float, float, ...] | str # Error
1780
1780
1781
1781
reveal_type(tuple[int, str]((1, "x")))
1782
1782
[out]
1783
- _testTupleWithDifferentArgsPy310.py:15: note: Revealed type is "Union[ builtins.str, tuple[builtins.float, builtins.float, builtins.str] ]"
1784
- _testTupleWithDifferentArgsPy310.py:16: note: Revealed type is "Union[ tuple[builtins.float], builtins.str] "
1785
- _testTupleWithDifferentArgsPy310.py:17: note: Revealed type is "Union[ builtins.tuple[builtins.float, ...], builtins.str] "
1783
+ _testTupleWithDifferentArgsPy310.py:15: note: Revealed type is "builtins.str | tuple[builtins.float, builtins.float, builtins.str]"
1784
+ _testTupleWithDifferentArgsPy310.py:16: note: Revealed type is "tuple[builtins.float] | builtins.str"
1785
+ _testTupleWithDifferentArgsPy310.py:17: note: Revealed type is "builtins.tuple[builtins.float, ...] | builtins.str"
1786
1786
_testTupleWithDifferentArgsPy310.py:18: note: Revealed type is "tuple[builtins.float, builtins.str]"
1787
1787
_testTupleWithDifferentArgsPy310.py:19: note: Revealed type is "builtins.tuple[builtins.float, ...]"
1788
1788
_testTupleWithDifferentArgsPy310.py:20: note: Revealed type is "builtins.list[tuple[builtins.int, builtins.str]]"
0 commit comments