We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if X in collection
def foobar(foo: Union[str, float]): if foo in ['fizz', 'buzz']: reveal_type(foo) else: pass
The revealed type is Union[builtins.str, builtins.float] but should be builtins.str
Union[builtins.str, builtins.float]
builtins.str