We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.data
.validated_data
class FooListSerializer(serializers.ListSerializer): ... reveal_type(FooListSerializer(data).data) # list[Any]
class FooListSerializer(serializers.Serializer): ... reveal_type(FooListSerializer(data, many=True).data) # list[Any] reveal_type(FooListSerializer(data).data) # dict[str, Any]
need to investigate this more, what happens when passing many=True to a list serializer?
many=True
Also need to handle .validated_data as well
rel: https://github.com/encode/django-rest-framework/blob/98e56e0327596db352b35fa3b3dc8355dc9bd030/rest_framework/serializers.py#L117-L122
rel: python/mypy#8330 (comment) rel: python/mypy#9482
The text was updated successfully, but these errors were encountered:
Related: typeddjango#260 (issue), typeddjango#315 (PR)
Sorry, something went wrong.
No branches or pull requests
need to investigate this more, what happens when passing
many=True
to a list serializer?Also need to handle
.validated_data
as wellrel: https://github.com/encode/django-rest-framework/blob/98e56e0327596db352b35fa3b3dc8355dc9bd030/rest_framework/serializers.py#L117-L122
rel: python/mypy#8330 (comment)
rel: python/mypy#9482
The text was updated successfully, but these errors were encountered: