3 ms·
But doesn't this break type checking for the users of the proxy functions?
by qwertox 3y ago
But doesn't this break type checking for the users of the proxy functions?
- flakes 3y agoYou can write the proxy/decorator to preserve typing info using a typevar. F = TypeVar(“F”, bound=Callable) def wrapper(f: F) -> F: …