In the following example, the last revealed type could/should be Union[builtins.int, None]:
deff() ->bool: returnTrueu: int|tuple[int]
x=Noneiff():
x=uifisinstance(x, tuple):
x=x[0]
reveal_type(x) # note: "builtins.int"reveal_type(x) # note: Revealed type is "Union[builtins.int, Tuple[builtins.int], None]"
See this comment for background information.
In the following example, the last revealed type could/should be
Union[builtins.int, None]:See this comment for background information.