mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Slots use tuples instead now.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user