Skip to content

Commit

Permalink
(Fixed) problem with comparator two APIData classes and its inheritors
Browse files Browse the repository at this point in the history
  • Loading branch information
staseek committed Jul 24, 2023
1 parent dee72ba commit 6df6cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def destroy(glob: Union[Type[_T], _T]): # type: ignore
# API.CustomInitConnectionList.remove(self)

def __eq__(self, __o: APIData) -> bool:
if type(__o) != APIData:
if not isinstance(__o, APIData):
return False
return self.pid == __o.pid

Expand Down

0 comments on commit 6df6cde

Please sign in to comment.