Repository navigation
Read variant tags through one TagReading and msgspec clashes in one walk - #6709
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 improve performance by 52.44%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Breaking Change AnalysisResult: No breaking changes detected Reasoning: This PR is an internal refactor with no behaviour change. Tag-reading parameters (inline_variants, union_written, enum_member_tags, merged_tags) are bundled into a new TagReading record in the private module parser/_tag_plan.py. The parser/_passes/modules.py helpers inline_variant_models and merged_variant_models are replaced by a single tag_reading helper that computes the same values in the same order and still returns no merged tags without the merge-shared-variant-tags option. In parser/_passes/imports.py, the msgspec union-clash detection is reorganised so that _refused_union_clashes returns the Enum clashes and the kind clashes together, and _msgspec_kind_clashes now takes the precomputed Enum clashes instead of recomputing them; the same clashes are filtered the same way. All changed code is in underscore-prefixed private modules, so no public CLI option, Python API, template or default changes, and the doc edits only update internal architecture notes. Every behaviour diff gate cell is both-fail, with no accepted or violation cells, which confirms default output is unchanged. This analysis was produced by the release draft workflow |
|
🎉 Released in 0.93.0 This PR is now available in the latest release. See the release notes for details. |
Summary by CodeRabbit