You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response comming from a request made with rest_framework.test.APIClient has an attribute wsgi_request of type WSGIRequest. Currently, if used, mypy will throw out an error: error: "_MonkeyPatchedResponse" has no attribute "wsgi_request".
How is that should be
No error should be thrown by mypy (if we type: ignore it, it works just fine in runtime).
System information
OS: Linux
python version: 3.11
django version: 4.1.7
mypy version: 1.1.1
django-stubs version: 1.16.0
The text was updated successfully, but these errors were encountered:
Bug report
What's wrong
The response comming from a request made with
rest_framework.test.APIClient
has an attributewsgi_request
of typeWSGIRequest
. Currently, if used, mypy will throw out an error:error: "_MonkeyPatchedResponse" has no attribute "wsgi_request"
.How is that should be
No error should be thrown by mypy (if we
type: ignore
it, it works just fine in runtime).System information
python
version: 3.11django
version: 4.1.7mypy
version: 1.1.1django-stubs
version: 1.16.0The text was updated successfully, but these errors were encountered: