Repository navigation
fix(python): reserve dict conversion methods - #3506
Merged
Merged
Conversation
Generated-output differences133 files differ — 115 modified, 18 new, 0 deleted |
schani
force-pushed
the
fix/python-to-dict-property
branch
from
September 7, 2026 14:20
6b42d24 to
10ef2d2
Compare
Generated-output differences133 files differ — 115 modified, 18 new, 0 deleted |
schani
force-pushed
the
fix/python-to-dict-property
branch
from
September 7, 2026 17:46
10ef2d2 to
25df10b
Compare
Generated-output differences133 files differ — 115 modified, 18 new, 0 deleted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Properties named
from_dictorto_dictreplace generated conversion methods, causing mypy errors and broken deserialization or serialization. Reserve both member names while preserving their JSON keys.Adds both names to the shared keyword fixtures.
The classes-only renderer keeps the original property names because it emits no conversion methods.
Validation:
npm run build;npm run lint;CPUs=2 QUICKTEST=true FIXTURE=python npm run test:fixtures(69 tests); classes-only output inspection.Production change: 6 added lines.