Closed systemcatch closed 4 years ago
Merging #845 into master will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #845 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 1786 1791 +5
Branches 307 308 +1
=========================================
+ Hits 1786 1791 +5
Impacted Files | Coverage Δ | |
---|---|---|
arrow/arrow.py | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 80aa80c...7d225c1. Read the comment docs.
First pass looks solid. Is this seriously all the places where we need to cover imaginary dates/times?
I think so, by fixing shift
we can use it in range
and span
which then propagate to other methods.
Does this address https://github.com/arrow-py/arrow/issues/686 as well? If so, we should add a regression test for it.
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?
Should we also resolve imaginary datetimes if they are constructed via the
arrow.get
orarrow.Arrow
?
I tend to think not as datetime
lets you construct imaginary instances directly. Users might have a reason for needing them and with the new imaginary
property it's easy to check it
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:
tox
ormake test
to find out!).tox -e lint
ormake lint
to find out!).master
branch.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_imaginary
function as an utility method for our users.