Skip to content

Commit f15da4f

Browse files
committed
Add str overload to CyclicInt
1 parent 869fe2d commit f15da4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpath/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ def __eq__(self, other):
2323
def __repr__(self):
2424
return f"<CyclicInt {int(self)}/{self.max_value}>"
2525

26+
def __str__(self):
27+
return str(int(self))
28+
2629

2730
class MergeType(IntFlag):
2831
ADDITIVE = auto()

0 commit comments

Comments
 (0)