Let's say that my function can accept parameter b
to be either an int or a list
def foo_fun(a: int, b: ??)->int:
if isinstance(b,list):
do something
else
do something else
How can i use type hinting with this particular setting?
Thanks