Files
django-stubs/django-stubs/middleware
PIG208 c0414c7b02 Reflect the deprecation of get_response being None. (#1086)
* 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>
2022-09-03 23:53:14 +03:00
..
2018-12-21 05:47:24 +03:00
2018-12-21 23:07:58 +03:00
2019-02-13 19:44:25 +03:00
2019-02-22 02:55:49 +03:00
2019-02-22 02:55:49 +03:00
2019-02-22 02:55:49 +03:00
2019-02-22 02:55:49 +03:00