Repository navigation
Type mapped component users in dict keys and TypedDict extra_items by their import and say DispatchTable.choose returns a Choice - #5206
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codex Review SummaryThis 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 degrade performance by 16.57%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
… their import and say DispatchTable.choose returns a Choice
42c3e6c to
494db72
Compare
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 a narrow bug fix for components that are a $ref with sibling keywords to a schema in a document mapped by --external-ref-mapping. Before, a reference to such a component was only typed by the mapped import when it appeared in a field or nested type. Now it is also typed by the import when it is a dict key from propertyNames and when it is inside typed additionalProperties, such as pydantic pydantic_extra or TypedDict extra_items. The only internal changes are a new static helper additional_properties_type_source on the output model context, a reworked _type_users_by_import, a new _type_additional_properties_by_import, and TypedDict extra_items being left unquoted when it no longer names generated classes. No CLI options, public API, defaults, templates or Python version support were removed or changed. The expected-output changes only add new test cases (Keyed, Extra, Mixed) for the newly handled positions, and the TypedDict import moving to typing_extensions comes from the new extra_items case. No existing expected output for previously supported inputs changed, so existing users are not affected. This analysis was produced by the release draft workflow |
Summary by CodeRabbit