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
assert_never(c) # E: Argument 1 to "assert_never" has incompatible type "Literal['red']"; expected "Never"
2036
2042
[typing fixtures/typing-typeddict.pyi]
2037
2043
2038
-
[case testMatchAsPatternIntersection-skip]
2044
+
[case testMatchAsPatternIntersection]
2045
+
# flags: --strict-equality --warn-unreachable
2039
2046
class A: pass
2040
2047
class B: pass
2041
2048
class C: pass
@@ -2046,7 +2053,7 @@ def f(x: A) -> None:
2046
2053
reveal_type(y) # N: Revealed type is "__main__.<subclass of "__main__.A" and "__main__.B">"
2047
2054
case C() as y:
2048
2055
reveal_type(y) # N: Revealed type is "__main__.<subclass of "__main__.A" and "__main__.C">"
2049
-
reveal_type(y) # N: Revealed type is "Union[__main__.<subclass of "__main__.A" and "__main__.B">, __main__.<subclass of "__main__.A" and "__main__.C">]"
2056
+
reveal_type(y) # N: Revealed type is "__main__.<subclass of "__main__.A" and "__main__.B"> | __main__.<subclass of "__main__.A" and "__main__.C">"
0 commit comments