We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a28d52 commit 308b977Copy full SHA for 308b977
1 file changed
dpath/types.py
@@ -3,9 +3,9 @@
3
4
5
class CyclicInt(int):
6
- """Same as a normal int but mimicks the behavior of list indexes (can be compared to a negative number)"""
+ """Same as a normal int but mimicks the behavior of list indexes (can be compared to a negative number)."""
7
8
- def __new__(cls, value, max_value, *args, **kwargs):
+ def __new__(cls, value: int, max_value: int, *args, **kwargs):
9
if value >= max_value:
10
raise TypeError(
11
f"Tried to initiate a CyclicInt with a value ({value}) "
0 commit comments