Skip to content

Commit 308b977

Browse files
committed
Minor improvements
1 parent 4a28d52 commit 308b977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpath/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44

55
class CyclicInt(int):
6-
"""Same as a normal int but mimicks the behavior of list indexes (can be compared to a negative number)"""
6+
"""Same as a normal int but mimicks the behavior of list indexes (can be compared to a negative number)."""
77

8-
def __new__(cls, value, max_value, *args, **kwargs):
8+
def __new__(cls, value: int, max_value: int, *args, **kwargs):
99
if value >= max_value:
1010
raise TypeError(
1111
f"Tried to initiate a CyclicInt with a value ({value}) "

0 commit comments

Comments
 (0)