Skip to content

fix(python): reserve dict conversion methods - #3506

Merged
schani merged 1 commit into
masterfrom
fix/python-to-dict-property
Sep 7, 2026
Merged

schani merged 1 commit into
masterfrom
fix/python-to-dict-property

Conversation

@schani

@schani schani commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Properties named from_dict or to_dict replace 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.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Generated-output differences

133 files differ — 115 modified, 18 new, 0 deleted
13640 changed lines — +8961 / −4679

Open the generated-output report →

@schani
schani force-pushed the fix/python-to-dict-property branch from 6b42d24 to 10ef2d2 Compare September 7, 2026 14:20
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Generated-output differences

133 files differ — 115 modified, 18 new, 0 deleted
13640 changed lines — +8961 / −4679

Open the generated-output report →

@schani
schani force-pushed the fix/python-to-dict-property branch from 10ef2d2 to 25df10b Compare September 7, 2026 17:46
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Generated-output differences

133 files differ — 115 modified, 18 new, 0 deleted
13730 changed lines — +9006 / −4724

Open the generated-output report →

@schani
schani merged commit 4766d88 into master Sep 7, 2026
35 checks passed
@schani
schani deleted the fix/python-to-dict-property branch September 7, 2026 18: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.

1 participant