Skip to content

Commit

Permalink
eq dunder returns instead of raises
Browse files Browse the repository at this point in the history
eq dunder returns instead of raises
  • Loading branch information
chillymosh committed Aug 11, 2023
1 parent 70cb51f commit ac60489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wavelink/ext/spotify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def __repr__(self) -> str:
def __eq__(self, other) -> bool:
if isinstance(other, SpotifyTrack):
return self.id == other.id
raise NotImplementedError
return NotImplemented

def __hash__(self) -> int:
return hash(self.id)
Expand Down
2 changes: 1 addition & 1 deletion wavelink/tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __repr__(self) -> str:
def __eq__(self, other: object) -> bool:
if isinstance(other, Playable):
return self.encoded == other.encoded
raise NotImplementedError
return NotImplemented

@overload
@classmethod
Expand Down

0 comments on commit ac60489

Please sign in to comment.