Commit graph

6 commits

Author SHA1 Message Date
pgjones
e3bac56415 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 21:12:59 +01:00
David Lord
60b845ebab
update typing tests for json 2022-07-02 21:41:37 -07:00
pgjones
762382e436
view functions can return generators as responses directly 2022-06-18 11:25:05 -07:00
David Lord
3351a8677e
add errorhandler type check tests 2022-06-05 15:44:28 -07:00
David Lord
81be290ec8
view function is actually type checked 2022-06-05 15:43:53 -07:00
lecovi
8c6f1d96de
add example code for testing typing tools 2022-06-01 11:34:51 -07:00