Skip to content

Commit 997be18

Browse files
committed
Convert index to int
1 parent 0a468e3 commit 997be18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ltk/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def __ilshift__(self, value): return self.set_value(self.value << value)
709709
def __divmod__(self, value): return divmod(self.value, value) # pylint: disable=multiple-statements
710710
def __rdivmod__(self, value): return divmod(value, self.value) # pylint: disable=multiple-statements
711711
def __abs__(self): return abs(self.value) # pylint: disable=multiple-statements
712-
def __index__(self): return self.value # pylint: disable=multiple-statements
712+
def __index__(self): return int(self.value) # pylint: disable=multiple-statements
713713
def __round__(self ): return round(self.value) # pylint: disable=multiple-statements
714714
def __trunc__(self): return math.trunc(self.value) # pylint: disable=multiple-statements
715715
def __floor__(self): return math.floor(self.value) # pylint: disable=multiple-statements

0 commit comments

Comments
 (0)