Skip to content

Properly type JSON responses #218

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

Closed
wants to merge 2 commits into from
Closed

Conversation

niklasb
Copy link

@niklasb niklasb commented Oct 27, 2019

I have made things!

This fixes the types for the HttpResponse.json() method, which can return not only JSON objects but also lists, strings or numbers.

Related issues

@niklasb
Copy link
Author

niklasb commented Oct 27, 2019

is the CI ok?

@sobolevn
Copy link
Member

Nope, it has some problems. I am trying to fix it. No luck at the moment 🙁
Any help is appreciated. See #209 (comment)

@niklasb niklasb closed this Oct 27, 2019
@niklasb
Copy link
Author

niklasb commented Oct 27, 2019

this won't work anyways, apparently mypy does not support recursive type definitions...

voidus pushed a commit to voidus/django-stubs that referenced this pull request Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants