welp, wasnt aware __hex__ got removed in py3
This commit is contained in:
parent
bbaf3375a8
commit
2774cfd3e9
@ -85,8 +85,8 @@ class Colour:
|
|||||||
def __int__(self):
|
def __int__(self):
|
||||||
return int(str(self.value), 16)
|
return int(str(self.value), 16)
|
||||||
|
|
||||||
def __hex__(self):
|
def __index__(self):
|
||||||
return hex(self.value)
|
return self.value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def r(self):
|
def r(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user