Python spécifie plusieurs types possibles

from typing import Union

def foo(client_id: str) -> Union[list,bool]
Real Raccoon