Repository navigation
Build private mutable dataclasses without generating their methods - #6764
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Breaking Change AnalysisResult: No breaking changes detected Reasoning: This PR is an internal refactor. It adds a mutable_record decorator to the private _records module and swaps plain dataclass decorators for it on internal state classes such as _PipelineRun, TagPlan, GenerationFacts, _BracketTracker, NamingHint, ModelNameRecord, SchemaRuntimeValidation and DroppedConstraints. The decorator is built to produce the same class that dataclass without frozen produces: assignable fields, hash set to None when eq is on, and the same slots and kw_only options. The record builder now also handles fields marked init=False, keyword-only fields and docstring detection. The diff removes no command-line options, public Python names, template variables or Python version support. The only removed lines are internal imports, private helpers in _records.py and decorator lines. Dropping the unused dataclass import from parser.base does not remove a public name, since it is a standard-library import and not part of the module's API. The behaviour diff gate lists only both-fail cells and no accepted or violation cells, so default generated output does not change. Error handling is also unchanged. The changes do not touch the new read-object-keywords-by-type options or the new presets. This analysis was produced by the release draft workflow |
|
🎉 Released in 0.95.0 This PR is now available in the latest release. See the release notes for details. |
Summary by CodeRabbit