flask/tests/typing
Phil Jones 9b44bf2818
Improve decorator typing (#4676)
* Add a missing setupmethod decorator

* Improve the decorator typing

This will allow type checkers to understand that the decorators return
the same function signature as passed as an argument. This follows the
guidelines from
https://mypy.readthedocs.io/en/stable/generics.html#declaring-decorators.

I've chosen to keep a TypeVar per module and usage as I think
encouraged by PEP 695, which I hope is accepted as the syntax is much
nicer.
2022-07-06 14:05:20 -07:00
..
typing_error_handler.py add errorhandler type check tests 2022-06-05 15:44:28 -07:00
typing_route.py Improve decorator typing (#4676) 2022-07-06 14:05:20 -07:00