Add useful repr to all data classes.

This commit is contained in:
Rapptz committed 2017-01-03 09:52:06 -05:00
1 parent ec6c7f8b34
commit dceba9d962
12 files changed
+48 -1

No files matched your search

+3
View File
@@ -67,6 +67,9 @@ class Colour:
def __str__(self):
return '#{:0>6x}'.format(self.value)
def __repr__(self):
return '<Colour value=%s>' % self.value
def __hash__(self):
return hash(self.value)