Consider the following code sample
def sum(a: int, b: int):
return a + b
def wrap(*args, **kwargs):
# delegate to sum
return sum(*args, **kwargs)
The code works well except that type hint is lost.
It's very common in Python to use *args, **kwargs to implement delegation pattern. It would be great to have a way to keep the type hint while using them, but I don't know if it is possible and how.