Slots use tuples instead now.

This commit is contained in:
Rapptz
2017-01-03 09:51:50 -05:00
parent b9dafe375f
commit e4b16851bf
7 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
"""
class EqualityComparable:
__slots__ = []
__slots__ = ()
def __eq__(self, other):
return isinstance(other, self.__class__) and other.id == self.id
@@ -36,7 +36,7 @@ class EqualityComparable:
return True
class Hashable(EqualityComparable):
__slots__ = []
__slots__ = ()
def __hash__(self):
return hash(self.id)