Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
flakes
on Aug 27, 2023
|
parent
|
context
|
favorite
| on:
Python Type Hints – *args and **kwargs (2021)
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: