Consider the following Code:
from typing import Union # (or any other type hint, type Alias, etc.)
def func(arg: ???) -> None:
pass
func(Union[tuple[int, ...], float, "MyClass"])
class MyClass(object):
pass
The argument of function "func" is a type hint (or sometimes referred to as type annotation). Now what kind of type hint (or type annotation) should I substitute the 3-question marks "???" with as the correct type hint (type annotation) for type hints (type annotations)?
So far: I've looked up python's doc but could not find my answere. So it is either not covered in the doc or I simply didn't find it, yet.