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

state: get_value unwraps MutableProxy first #1887

Merged
merged 3 commits into from
Oct 1, 2023

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Sep 28, 2023

calling get_value triggers pydantic serialization semantics, which recursively serializes Base instances in a structure. However, this only works if the Base subclasses are not wrapped in MutableProxy, so explicitly unwrap the proxy in order to correctly serialize the state inside dict()

Fix #1886

calling `get_value` triggers pydantic serialization semantics, which
recursively serializes `Base` instances in a structure. However, this only
works if the `Base` subclasses are not wrapped in `MutableProxy`, so explicitly
unwrap the proxy in order to correctly serialize the state inside `dict()`

Fix #1886
picklelo
picklelo previously approved these changes Sep 29, 2023
@picklelo
Copy link
Contributor

Looks good, can merge once the conflict is resolved

@picklelo picklelo merged commit 418f9ad into main Oct 1, 2023
36 checks passed
@picklelo picklelo deleted the masenf/fix-initial-state-serialization branch October 9, 2023 21:06
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

Successfully merging this pull request may close these issues.

[REF-708] foreach over object items fails 0.27->0.2.8
2 participants