[issue41231] Type annotations lost when using wraps by default
David Caro
report at bugs.python.org
Wed Jul 8 06:14:33 EDT 2020
David Caro <david at dcaro.es> added the comment:
As a note, mypy does not tpyecheck the wrapper functions, probably because it would not be possible with the current code (as the typing hints get lost):
https://mypy.readthedocs.io/en/latest/generics.html?highlight=wrapper#declaring-decorators
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41231>
_______________________________________
More information about the Python-bugs-list
mailing list