@@ -1632,8 +1632,8 @@ def foo(x: T) -> T:
16321632 return x
16331633[out]
16341634_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"
16371637
16381638[case testTypeAliasWithNewStyleUnionInStub]
16391639import m
@@ -1711,7 +1711,7 @@ reveal_type(e.foo)
17111711reveal_type(E.Y.foo)
17121712[out]
17131713_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]?"
17151715_testEnumNameWorkCorrectlyOn311.py:13: note: Revealed type is "Literal['X']?"
17161716_testEnumNameWorkCorrectlyOn311.py:14: note: Revealed type is "builtins.int"
17171717_testEnumNameWorkCorrectlyOn311.py:15: note: Revealed type is "builtins.int"
@@ -1780,9 +1780,9 @@ WrongEllipsis = tuple[float, float, ...] | str # Error
17801780
17811781reveal_type(tuple[int, str]((1, "x")))
17821782[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"
17861786_testTupleWithDifferentArgsPy310.py:18: note: Revealed type is "tuple[builtins.float, builtins.str]"
17871787_testTupleWithDifferentArgsPy310.py:19: note: Revealed type is "builtins.tuple[builtins.float, ...]"
17881788_testTupleWithDifferentArgsPy310.py:20: note: Revealed type is "builtins.list[tuple[builtins.int, builtins.str]]"
0 commit comments