4 ms·
> Type hints in that code are erasing the actual signature of the function True enough. For the reader of these comments, it's possible (but non-obvious) to pr
by mrtranscendence 4y ago
> Type hints in that code are erasing the actual signature of the function
True enough. For the reader of these comments, it's possible (but non-obvious) to properly respect type hints in a decorator. See here: https://mypy.readthedocs.io/en/stable/generics.html#declaring-decorators https://mypy.readthedocs.io/en/stable/generics.html#declarin...