mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 15:57:08 +08:00
* Reflect the deprecation of get_response being None. Signed-off-by: Zixuan James Li <p359101898@gmail.com> * Type get_response with a callback protocol. Otherwise, calling `self.get_response(request)` in a subclass of `MiddlewareMixin` runs into `Invalid self argument` error. This is a workaround for https://github.com/python/mypy/issues/5485. Signed-off-by: Zixuan James Li <p359101898@gmail.com> Signed-off-by: Zixuan James Li <p359101898@gmail.com>
1.1 KiB
1.1 KiB