News for hackers. Stuff that matters.
Re:Python Type Hints – *args and **kwargs by flakes on Sunday August 27, 2023 @04:49PM (#37286512)
You can write the proxy/decorator to preserve typing info using a typevar.

    F = TypeVar(“F”, bound=Callable)
    def wrapper(f: F) -> F: …

There are no comments on this comment yet.