aboutsummaryrefslogtreecommitdiff
path: root/discord/mixins.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/mixins.py')
-rw-r--r--discord/mixins.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/mixins.py b/discord/mixins.py
index cdbd67d7..f6f641d5 100644
--- a/discord/mixins.py
+++ b/discord/mixins.py
@@ -25,6 +25,8 @@ DEALINGS IN THE SOFTWARE.
"""
class EqualityComparable:
+ __slots__ = []
+
def __eq__(self, other):
return isinstance(other, self.__class__) and other.id == self.id
@@ -34,5 +36,7 @@ class EqualityComparable:
return True
class Hashable(EqualityComparable):
+ __slots__ = []
+
def __hash__(self):
return hash(self.id)