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

stricter Serializer.errors #11

Open
sbdchd opened this issue Jul 6, 2021 · 0 comments
Open

stricter Serializer.errors #11

sbdchd opened this issue Jul 6, 2021 · 0 comments

Comments

@sbdchd
Copy link
Owner

sbdchd commented Jul 6, 2021

Currently we have Serializer.errors typed as Any, but I think we can use the ReturnDict type instead

https://github.com/encode/django-rest-framework/blob/98e56e0327596db352b35fa3b3dc8355dc9bd030/rest_framework/serializers.py#L551-L559

can also update BaseSerializer and Field while we are at it

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

No branches or pull requests

1 participant