ratelimit icon indicating copy to clipboard operation
ratelimit copied to clipboard

Preserve Type Hints in decorators

Open steamraven opened this issue 1 year ago • 1 comments

With Python 3.10 (and earlier with typing_extensions), we now have access to allow decorators to properly forward type hints from the wrapped function.

More details can be found here https://stackoverflow.com/questions/74074580/how-to-avoid-losing-type-hinting-of-decorated-function

steamraven avatar Mar 01 '24 23:03 steamraven

Agree- this is also an issue with docstrings. the limits decorator kills docstrings for functions and classes it's used on

FreyGeospatial avatar Nov 19 '24 22:11 FreyGeospatial