Files
django-stubs/django-stubs/views
PIG208 11ded9deaf Enhance stubs for csrf decorators. (#1130)
* Use inherited types from CsrfViewMiddleware.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>

* Define decorators generated from middleware with TypeVars.

csrf_protect and etc. are created via the decorator_from_middleware
helper, which doesn't modify the original signature of the wrapped view
function. Using TypeVar helps preserve the original type of the
decorated callable.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-08-27 20:29:30 +03:00
..
2022-08-26 13:22:55 +03:00
2019-02-22 01:50:52 +03:00
2022-04-04 00:41:41 +03:00
2019-02-22 02:55:49 +03:00
2022-04-04 00:41:41 +03:00