Slots use tuples instead now.

This commit is contained in:
Rapptz
2016-10-11 00:57:41 -04:00
parent b9dafe375f
commit e4b16851bf
7 changed files with 8 additions and 8 deletions

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)