Using floating numbers for Time Differences#1191
Using floating numbers for Time Differences#1191BioBox wants to merge 4 commits intopimutils:masterfrom
Conversation
updates: - [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](asottile/pyupgrade@v2.38.0...v2.38.2)
|
There was a button on github that said "Update Branch" and it made the "Merge branch 'master' into master" commit. Don't know what was up with that. |
I assume the |
WhyNotHugo
left a comment
There was a problem hiding this comment.
Haven't tested this, but changes make sense to me.
Python's
timedeltaclass can accept floating point numbers as fields, so why restrict ourselves to integers?This commit was spurred by attempting
khal new <datetime> 2.5h <summary>and seeing it failed.