python typing accept two types code example Example: typing multiple types from typing import Union def foo(client_id: str) -> Union[list,bool]