-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
chore(python): Switch over some of the custom Python date/time conversions to native PyO3 conversions #16203
chore(python): Switch over some of the custom Python date/time conversions to native PyO3 conversions #16203
Conversation
Ok(av) | ||
}) | ||
let timedelta = ob.extract::<TimeDelta>()?; | ||
if let Some(micros) = timedelta.num_microseconds() { |
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.
Tried nanoseconds here, it broke the tests, so stuck to micro/milliseconds only.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16203 +/- ##
==========================================
+ Coverage 80.93% 81.03% +0.10%
==========================================
Files 1393 1393
Lines 179559 178941 -618
Branches 2907 2907
==========================================
- Hits 145331 145013 -318
+ Misses 33722 33423 -299
+ Partials 506 505 -1 ☔ View full report in Codecov by Sentry. |
Thanks! Can you rebase? |
@ritchie46 I fixed the conflict. If you literally want a rebase I can do that too. |
Nope, the conflict is fine. ^^ |
Fixes #16158
This should probably give a performance boost for relevant code, but I didn't check.
Things I didn't touch: