-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
fix: Remove use of asserts for control flow. #3359
Conversation
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3359 +/- ##
==========================================
- Coverage 98.28% 98.28% -0.01%
==========================================
Files 323 323
Lines 14780 14773 -7
Branches 2342 2345 +3
==========================================
- Hits 14526 14519 -7
Misses 116 116
Partials 138 138 ☔ View full report in Codecov by Sentry. |
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3359 |
#3347 introduced a new pattern to differentiate between Pydantic v1 and v2 installs, however it relies on using
assert
which is an issue as can optimised away.This PR changes the approach to manually throw an
ImportError
instead.Closes #3354
Description
Closes