Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit ac60489

Browse files
committed
eq dunder returns instead of raises
eq dunder returns instead of raises
1 parent 70cb51f commit ac60489

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wavelink/ext/spotify/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def __repr__(self) -> str:
211211
def __eq__(self, other) -> bool:
212212
if isinstance(other, SpotifyTrack):
213213
return self.id == other.id
214-
raise NotImplementedError
214+
return NotImplemented
215215

216216
def __hash__(self) -> int:
217217
return hash(self.id)

wavelink/tracks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def __repr__(self) -> str:
150150
def __eq__(self, other: object) -> bool:
151151
if isinstance(other, Playable):
152152
return self.encoded == other.encoded
153-
raise NotImplementedError
153+
return NotImplemented
154154

155155
@overload
156156
@classmethod

0 commit comments

Comments
 (0)