mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 18:59:09 +00:00
Add instance check to PermissionOvewrite.__eq__
This commit is contained in:
parent
a1d41f16d8
commit
650beee53d
@ -482,7 +482,7 @@ class PermissionOverwrite:
|
|||||||
setattr(self, key, value)
|
setattr(self, key, value)
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return self._values == other._values
|
return isinstance(other, PermissionOverwrite) and self._values == other._values
|
||||||
|
|
||||||
def _set(self, key, value):
|
def _set(self, key, value):
|
||||||
if value not in (True, None, False):
|
if value not in (True, None, False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user