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):
return int(str(self.value), 16)
def __hex__(self):
return hex(self.value)
def __index__(self):
return self.value
@property
def r(self):