Simplify PlexPartialObject eq return (#1230)

This commit is contained in:
JonnyWong16 2023-08-27 13:24:29 -07:00 committed by GitHub
parent 80fd90b687
commit 0399bea51e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -502,7 +502,7 @@ class PlexPartialObject(PlexObject):
def __eq__(self, other):
if isinstance(other, PlexPartialObject):
return other not in [None, []] and self.key == other.key
return self.key == other.key
return NotImplemented
def __hash__(self):