Skip to content

Use ImmutableQueryDict for request params #237

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

Merged

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Jun 22, 2022

I have made things!

See typeddjango/django-stubs#925 (comment) for some background. django-stubs itself uses _ImmutableQueryDict for query params, but djangorestframework-stubs was not updated with this.

_ImmutableQueryDict was added in django-stubs 0.11.0, which is already a requirement in djangorestframework-stubs.

Related issues

Closes typeddjango/django-stubs#1010

@intgr
Copy link
Contributor Author

intgr commented Jun 22, 2022

Cc: @sterliakov

@sobolevn
Copy link
Member

Thanks, this looks good enough to me for now!

@sobolevn
Copy link
Member

Sadly, it didn't make it into 1.7.0
I will release 1.7.1 right now.

@sobolevn sobolevn merged commit 9bfea3a into typeddjango:master Jun 22, 2022
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.

QueryDict __getitem__ wrong type
2 participants