You can write the proxy/decorator to preserve typing info using a typevar.
F = TypeVar(“F”, bound=Callable)
def wrapper(f: F) -> F: … F = TypeVar(“F”, bound=Callable)
def wrapper(f: F) -> F: …No comments yet.