typing: Fix function signatures with django-stubs.

This commit is contained in:
PIG208
2021-08-10 21:07:40 +08:00
committed by Tim Abbott
parent 04f5f25478
commit f9644c8cf3
3 changed files with 4 additions and 4 deletions

View File

@@ -372,8 +372,8 @@ class LogRequests(MiddlewareMixin):
record_request_start_data(request_notes.log_data)
def process_response(
self, request: HttpRequest, response: StreamingHttpResponse
) -> StreamingHttpResponse:
self, request: HttpRequest, response: HttpResponseBase
) -> HttpResponseBase:
if getattr(response, "asynchronous", False):
# This special Tornado "asynchronous" response is
# discarded after going through this code path as Tornado