Repository navigation
Break the import cycle between reference and the model base - #7310
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 48.74%2 warnings
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 that stops the reference module from importing the model layer. Six methods change type annotations only: prepare_explicit_field_aliases, explicit_field_alias and validate_explicit_field_aliases on both FieldNameResolver and ModelResolver. Their field parameters used to be annotated as list of DataModelFieldBase or DataModelFieldBase and are now Sequence of _AliasField or _AliasField, where _AliasField is a structural protocol. This widens the accepted types, and the method names, parameters, defaults and runtime behaviour stay the same, so existing callers are unaffected. The project migration note says the same. Reference.iter_data_model_children now yields the children that lack replace_reference instead of doing an isinstance check for DataModel. Children are only ever DataType or DataModel, so it yields the same objects as before. The removed _is_data_model helper was private, and the new data_model_children function is in the private _graph_links module. The behaviour diff gate lists only both-fail cells and no accepted or violation cells, so default generated output does not change. No CLI options, templates, defaults, Python version support or error handling change. 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