-
Notifications
You must be signed in to change notification settings - Fork 287
custom behaviour for timedelta subclasses #881
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
Conversation
please review. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #881 +/- ##
==========================================
- Coverage 93.85% 93.84% -0.02%
==========================================
Files 104 104
Lines 15387 15391 +4
Branches 25 25
==========================================
+ Hits 14441 14443 +2
- Misses 940 942 +2
Partials 6 6
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
CodSpeed Performance ReportMerging #881 will degrade performances by 24.44%Comparing Summary
Benchmarks breakdown
|
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.
Overall LGTM, except you'll need to use an older pandas version to make 3.7 happy.
A somewhat related nit is that in idiomatic Rust as_x
methods are usually zero cost casts and to_x
would be the more correct term for many of the functions implemented here. I might push something to change that separately sometime.
2ac66f3
to
68aa3bb
Compare
Change Summary
Support pandas
Timedelta
which don't supply support the Python timedelta C-API.Related issue number
Fix pydantic/pydantic#7095
Checklist
pydantic-core
(except for expected changes)Selected Reviewer: @davidhewitt