mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 01:45:59 +08:00
* 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>