-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed a regression caused by #361 where SQLAlchemy models with Mixin Classes raises AttributeError #385
Conversation
for more information, see https://pre-commit.ci
Thanks! Can you add a test case to avoid this in future? |
Allright, I'm not very good at tests but I just altered models in the Edit: I also am not sure how to |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #385 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 72 72
Lines 5559 5559
=========================================
Hits 5559 5559
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution 🎉
Fixes #383 and partially fixes #369
There is a module called
SQLAlchemy-Mixins
,FastAP-Users
usesmixins
, and most probably any project that has +3 models with same primary key structure uses mixins, so its quite popular. @jowilf I believe we should patch the version immediately because many SQLAlchemy users will be using custom or third partymixins
.