Skip to content

Update Serializer to capture context type - #993

Open
terencehonles wants to merge 2 commits into
typeddjango:masterfrom
terencehonles:update-context
Open

Update Serializer to capture context type#993
terencehonles wants to merge 2 commits into
typeddjango:masterfrom
terencehonles:update-context

Conversation

@terencehonles

@terencehonles terencehonles commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

I have made things!

This changes fixes the Serializer context no longer being mutable and instead binds the context to the value passed in on creation.

Related issues

fixes a regression in #946 (see: #946 (comment))

Closes #986

Comment thread rest_framework-stubs/serializers.pyi Outdated
Comment thread rest_framework-stubs/serializers.pyi
@terencehonles
terencehonles force-pushed the update-context branch 2 times, most recently from 7150a0c to 14da753 Compare June 12, 2026 06:32
This changes fixes the Serializer context no longer being mutable and
instead binds the context to the value passed in on creation.
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.

get_serializer_context() return type should be dict, not Mapping

2 participants