Closed mschoettle closed 1 year ago
Updating to the latest version(s) of django-stubs from 1.10.1 reveals errors such as:
django-stubs
1.10.1
Argument 1 to "assertContains" has incompatible type "_MonkeyPatchedWSGIResponse"; expected "HttpResponse" [arg-type]
django-stubs expects a HttpResponseBase instead of HttpResponse (see: https://github.com/typeddjango/django-stubs/blob/0381fdb0227f0db96a584d8e916ae6d8b3d025a3/django-stubs/test/testcases.pyi#L102)
HttpResponseBase
HttpResponse
This PR changes the signatures to be in line with what django-stubs defines.
Great, thanks!
@adamchainz Any chance a new version could be released soon that includes this fix?
Updating to the latest version(s) of
django-stubs
from1.10.1
reveals errors such as:django-stubs
expects aHttpResponseBase
instead ofHttpResponse
(see: https://github.com/typeddjango/django-stubs/blob/0381fdb0227f0db96a584d8e916ae6d8b3d025a3/django-stubs/test/testcases.pyi#L102)This PR changes the signatures to be in line with what
django-stubs
defines.