Fix E721 do not compare types, for exact checks use 'is' / 'is not', for instance checks use 'isinstance()'

This commit is contained in:
Hugo van Kemenade 2023-08-22 14:17:03 +03:00
parent fd1950052c
commit 094392e37f

View file

@ -1505,7 +1505,7 @@ class _Opus(_Taggable):
return f"{self.get_artist().get_name()} - {self.get_title()}"
def __eq__(self, other):
if not isinstance(self, other):
if type(self) is not type(other):
return False
a = self.get_title().lower()
b = other.get_title().lower()