Repository navigation
Drop the private re-exports of the parser base and their dead branches - #7322
Conversation
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Merging this PR will improve performance by 15.19%1 warning
Performance Changes
Tip Curious why performance improved? Comment 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 plus test-harness changes. In parser/_field_copies.py, the private helpers now accept only _InheritedTypeModifiers and no longer handle a raw DataType for the deferred inherited type, a branch that was never reached. The private _merge_data_type_modifiers function loses its unused preserve_container_shape and preserve_optional keyword parameters. The DataType case is also removed from _detach_deferred_inherited_field_parents. A pragma-guarded continue is replaced by assert_type, which only matters to type checkers and does nothing at runtime. A JsonSchemaObject match case becomes a wildcard. In parser/base.py, the underscore-prefixed re-exports _get_inherited_type_modifiers, _merge_data_type_modifiers, _DEFERRED_INHERITED_CLASS_KEY, _DEFERRED_INHERITED_FIELD_KEY, _DEFERRED_INHERITED_TYPE_KEY and _RAW_SCHEMA_DEFAULT_KEY are removed. These are private names, not public API, and the analysis context lists no public Python name changes. The remaining changes swap unit tests that imported those private names for end-to-end CLI tests with new fixtures and expected outputs, and update allowlists and baselines. The migration note classifies the change as harness-only and says the package writes the same output. Every cell in the behaviour diff gate is both-fail, so no default output changes. No CLI options, templates, defaults, Python version support or error handling are affected. This analysis was produced by the release draft workflow |
|
🎉 Released in 0.100.0 This PR is now available in the latest release. See the release notes for details. |
Summary by CodeRabbit