Skip to content

Commit a9bc8b6

Browse files
Added missing wsgi_request to the _MonkeyPatchedResponse (#747)
* Added missing wsgi_request to the _MonkeyPatchedResponse * Fixed wsgi_request import location
1 parent a844a89 commit a9bc8b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rest_framework-stubs/response.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections.abc import Mapping
22
from typing import Any
33

4+
from django.core.handlers.wsgi import WSGIRequest
45
from django.template.base import Template
56
from django.template.response import SimpleTemplateResponse
67
from django.test.utils import ContextList
@@ -38,6 +39,7 @@ class _MonkeyPatchedResponse(Response):
3839
context: ContextList | dict[str, Any]
3940
redirect_chain: list[tuple[str, int]]
4041
request: dict[str, Any]
42+
wsgi_request: WSGIRequest
4143
resolver_match: ResolverMatch
4244
templates: list[Template]
4345
def json(self) -> Any: ...

0 commit comments

Comments
 (0)