3 ms·
You can write the proxy/decorator to preserve typing info using a typevar. F = TypeVar(“F”, bound=Callable) def wrapper(f: F) -> F: …
by flakes 3y ago
You can write the proxy/decorator to preserve typing info using a typevar.
F = TypeVar(“F”, bound=Callable)
def wrapper(f: F) -> F: …