Fix exact imports with module/class name collision#2998
Conversation
📝 WalkthroughWalkthroughAdjusted import-path composition in parser: __change_from_import now only composes/short-circuits relative paths when exact imports are disabled, changing the condition to require a truthy Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
📚 Docs Preview: https://pr-2998.datamodel-code-generator.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2998 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 94 94
Lines 18075 18081 +6
Branches 2090 2090
=========================================
+ Hits 18075 18081 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
af1dde1 to
a8d0b88
Compare
Breaking Change AnalysisResult: No breaking changes detected Reasoning: This PR is a bug fix that corrects the behavior of the This analysis was performed by Claude Code Action |
|
🎉 Released in 0.54.0 This PR is now available in the latest release. See the release notes for details. |
Fixes: #2984
Summary by CodeRabbit
Bug Fixes
Tests
New