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:10:40 +03:00
parent bbf0a0b108
commit 3ece8e83a1

View file

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