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
{{ message }}
Repository navigation
Commit 967f590
Browse filesBrowse the repository at this point in the historyBrowse files
reveal_type(a) # N: Revealed type is "Literal[1]?"
2688
2688
reveal_type(b) # N: Revealed type is "Tuple[Literal[1]?, Literal[2]?]"
2689
2689
2690
-
# TODO: This test seems somewhat broken and might need a rewrite (and a fix somewhere in mypy).
2691
-
# See https://github.com/python/mypy/issues/7399#issuecomment-554188073 for more context.
2692
-
force1(reveal_type(a)) # N: Revealed type is "Literal[1]"
2693
-
force2(reveal_type(b)) # E: Argument 1 to "force2" has incompatible type "Tuple[int, int]"; expected "Tuple[Literal[1], Literal[2]]" \
2694
-
# N: Revealed type is "Tuple[Literal[1]?, Literal[2]?]"
0 commit comments