feat: have timerange have a default display way

This commit is contained in:
Matthias
2025-09-06 19:18:12 +02:00
parent 587ec513db
commit e948839fb5

View File

@@ -80,6 +80,9 @@ class TimeRange:
val = stopdt.strftime(DATETIME_PRINT_FORMAT)
return val
def __repr__(self) -> str:
return f"TimeRange({self.timerange_str})"
def __eq__(self, other):
"""Override the default Equals behavior"""
return (