Describe the Bug
Minimal repro:
def _(flag: bool, t: type) -> None:
x = 1 if flag else "foo"
if isinstance(x, t):
reveal_type(x)
Expected: reveals Literal[1, "foo"]
Actual: reveals Unknown
Sandbox Link
https://pyrefly.org/sandbox/?code=CYUwZgBA+gFGA2BDA5gLggIwPZfgGggBd1CBPABxAEoIBaAPggDksA7EVAKAh4gA8IAXggBGCAEtICFBBDwAziAgAiMDmWduvSRPnjW8wolYBjEDD4FCVLrzsQATiABuIRPChlKFqkA
(Only applicable for extension issues) IDE Information
No response