Assuming I have some generic function:
def foo(*args):
for arg in args:
print(arg)
If I wanted to type hint *args, according to the PEP I only need to specify the type one arg.
What if the arguments can be of any type? What is the difference between:
T = typing.TypeVar('T')
def foo(*args: T):
...
and
def foo(*args: Any):
...
To my knowledge, TypeVar('T') equates to "any type", but does that apply when variable args are of multiple types?