Skip to content

Commit

Permalink
fix(time_format): invalid comparison of strings to enums
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerodes committed Jan 10, 2025
1 parent c73541a commit 8aed2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allmydata/util/time_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from enum import Enum


class ParseDurationUnitFormat(Enum):
class ParseDurationUnitFormat(str, Enum):
SECONDS0 = "s"
SECONDS1 = "second"
SECONDS2 = "seconds"
Expand Down

0 comments on commit 8aed2d5

Please sign in to comment.