Skip to content

Commit badddb2

Browse files
committed
fix test
1 parent c305726 commit badddb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unit_of_time/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,9 @@ def __eq__(self, other):
801801
"""
802802
if isinstance(other, int):
803803
other = TimeunitKind.from_int(other)
804-
return self.kind == other.kind and self.dt == other.dt
804+
if isinstance(other, Timeunit):
805+
return self.kind == other.kind and self.dt == other.dt
806+
return super().__eq__(other)
805807

806808
def __lt__(self, other):
807809
"""

0 commit comments

Comments
 (0)