python type hint one or another code example
Example 1: typing multiple types
from typing import Union
def foo(client_id: str) -> Union[list,bool]
Example 2: type declaration python
def greeting(name: str) -> str:
return 'Hello ' + name
from typing import Union
def foo(client_id: str) -> Union[list,bool]
def greeting(name: str) -> str:
return 'Hello ' + name