Fix E721 do not compare types, for exact checks use 'is' / 'is not', for instance checks use 'isinstance()'
This commit is contained in:
parent
bbf0a0b108
commit
3ece8e83a1
|
@ -1505,7 +1505,7 @@ class _Opus(_Taggable):
|
||||||
return f"{self.get_artist().get_name()} - {self.get_title()}"
|
return f"{self.get_artist().get_name()} - {self.get_title()}"
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
if type(self) != type(other):
|
if not isinstance(self, other):
|
||||||
return False
|
return False
|
||||||
a = self.get_title().lower()
|
a = self.get_title().lower()
|
||||||
b = other.get_title().lower()
|
b = other.get_title().lower()
|
||||||
|
|
Loading…
Reference in a new issue