Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can write the proxy/decorator to preserve typing info using a typevar.

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: