Improve handling of imaginary datetimes#845
Conversation
Codecov Report
@@ Coverage Diff @@
## master #845 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 1786 1791 +5
Branches 307 308 +1
=========================================
+ Hits 1786 1791 +5
Continue to review full report at Codecov.
|
I think so, by fixing
No and looking at it I don't think that issue can be fixed in arrow. Those comparison results are baked into datetime itself. |
|
@pganssle any thoughts to add here? |
jadchaar
left a comment
There was a problem hiding this comment.
Looks good other than a single docstring comment.
Should we also resolve imaginary datetimes if they are constructed via the arrow.get or arrow.Arrow?
I tend to think not as |
|
Hey @jadchaar I've made the change you suggested, let me know if you're happy and I will merge this in. |
|
Looks great! Ship it! |
Pull Request Checklist
Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:
toxormake testto find out!).tox -e lintormake lintto find out!).masterbranch.If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!
Description of Changes
closes #72
Pendulum example is now fixed.
Range duplication no longer occurs.
I was also considering wrapping dateutil's
resolve_imaginaryfunction as an utility method for our users.