Python określa wiele możliwych typów
from typing import Union
def foo(client_id: str) -> Union[list,bool]
Real Raccoon
from typing import Union
def foo(client_id: str) -> Union[list,bool]