We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c305726 commit badddb2Copy full SHA for badddb2
unit_of_time/__init__.py
@@ -801,7 +801,9 @@ def __eq__(self, other):
801
"""
802
if isinstance(other, int):
803
other = TimeunitKind.from_int(other)
804
- return self.kind == other.kind and self.dt == other.dt
+ if isinstance(other, Timeunit):
805
+ return self.kind == other.kind and self.dt == other.dt
806
+ return super().__eq__(other)
807
808
def __lt__(self, other):
809
0 commit comments