Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typing: Access url via key "Location" instead of attribute "url". #22152

Merged
merged 1 commit into from
May 30, 2022

Conversation

PIG208
Copy link
Member

@PIG208 PIG208 commented May 29, 2022

It fixes the issue with "HttpResponse" has no attribute "url" by using result["Location"] instead of result.url.

Another similar error "HttpResponse" has no attribute "json" cannot be fixed without django-stubs as the test client returns a
monkey-patched HttpResponse, typed as _MonkeyPatchedWSGIResponse in the stubs.

This is a part of #18777.

This is a part of zulip#18777.

Signed-off-by: Zixuan James Li <359101898@qq.com>
@PIG208 PIG208 mentioned this pull request May 29, 2022
52 tasks
@timabbott timabbott merged commit c34ac1f into zulip:main May 30, 2022
@timabbott
Copy link
Sponsor Member

Merged, thanks @PIG208!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants