def foo(arg: str) -> int
def foo(arg: List[Union[Set[int],Optional[Dict[str, Any]]]]) -> str
Also, IIRC, better type inference.
Also, IIRC, better type inference.