Skip to content

Commit

Permalink
Merge pull request #95 from staseek/issue-58-fix
Browse files Browse the repository at this point in the history
(Fixed) problem with comparator two APIData classes and its inheritors
  • Loading branch information
thedemons authored Dec 8, 2023
2 parents 16da601 + 6df6cde commit a56c036
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 a56c036

Please sign in to comment.