zopefoundation / DateTime

This package provides a DateTime data type, as known from Zope. Unless you need to communicate with Zope APIs, you're probably better off using Python's built-in datetime module.
Other
19 stars 25 forks source link

Cast int to float in compare methods. #54

Closed fdiary closed 1 year ago

fdiary commented 1 year ago

As DateTime(int) behaviour is same as DateTime(float), we expect equalTo(int) behaviour same as equalTo(float) and same for other compare methods as well.

FYI, the coverate rate becomes a bit worse with this change but it is just because src/DateTime/DateTime.py has less number of lines, i.e. the number of non-covered lines does not increase.