From ac6048925dcc8df691c56c08c22b012b5099ebee Mon Sep 17 00:00:00 2001 From: chillymosh <86857777+chillymosh@users.noreply.github.com> Date: Fri, 11 Aug 2023 10:39:12 +0100 Subject: [PATCH] eq dunder returns instead of raises eq dunder returns instead of raises --- wavelink/ext/spotify/__init__.py | 2 +- wavelink/tracks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wavelink/ext/spotify/__init__.py b/wavelink/ext/spotify/__init__.py index 38f3ed45..05574808 100644 --- a/wavelink/ext/spotify/__init__.py +++ b/wavelink/ext/spotify/__init__.py @@ -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) diff --git a/wavelink/tracks.py b/wavelink/tracks.py index d13ecbcc..b55891c7 100644 --- a/wavelink/tracks.py +++ b/wavelink/tracks.py @@ -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