You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to decide what to return in cases where gt/lt can't be determined — maybe a defined constant in undate.undate ? Documentation says we can return
NotImplemented in the case of a false comparison
... but it's not clear to me if that would make sense in this case or not.
test cases should include individual dates and date ranges, dates that can be compared and that can't; would also be nice to see how sorting works (or doesn't)
The text was updated successfully, but these errors were encountered:
rlskoeser
changed the title
undate and undate interval comparison methods
implement comparison methods
Nov 9, 2022
implement greater than / less than rich comparison methods for both objects
For reference python documentation:
https://docs.python.org/3.9/reference/datamodel.html#object.__lt__
We need to decide what to return in cases where gt/lt can't be determined — maybe a defined constant in
undate.undate
? Documentation says we can returntest cases should include individual dates and date ranges, dates that can be compared and that can't; would also be nice to see how sorting works (or doesn't)
The text was updated successfully, but these errors were encountered: