Skip to content

Commit

Permalink
fix: compare with flag_value in flag_value.__eq__
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharp-Eyes committed Nov 29, 2024
1 parent 0ee01b1 commit 5e91bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disnake/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, func: Callable[[Any], int]) -> None:
self._parent: Type[T] = MISSING

def __eq__(self, other: Any) -> bool:
if isinstance(other, self.__class__):
if isinstance(other, flag_value):
return self.flag == other.flag
if isinstance(other, BaseFlags):
return self._parent is other.__class__ and self.flag == other.value
Expand Down

0 comments on commit 5e91bf8

Please sign in to comment.