welp, wasnt aware __hex__ got removed in py3

This commit is contained in:
iDutchy 2020-09-18 01:04:04 +00:00
parent bbaf3375a8
commit 2774cfd3e9

View File

@ -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):