Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base.pyi: use base class HttpResponseBase (#2459)
* base.pyi: use base class HttpResponseBase Previously, this was only a `Callable` but 125f31a restricted the last parameter to `HttpResponse` which is unnecessarily strict, as it does not cover things like `StreamingHttpResponse` and its descendant `FileResponse` among others – while _view_ functions can return these as well. They have a common base class `HttpResponseBase` – I guess this would be a better choice here. * [pre-commit.ci] auto fixes from pre-commit.com hooks * Update django-stubs/urls/base.pyi --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: sobolevn <mail@sobolevn.me>
- Loading branch information