Skip to content

Commit

Permalink
make Job.__eq__ more strict: require self.__dict__ == other.__dict__ …
Browse files Browse the repository at this point in the history
…for equality
  • Loading branch information
janosh committed Aug 7, 2023
1 parent 8fd0925 commit 7a19168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobflow/core/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def __eq__(self, other: object) -> bool:
"""
if not isinstance(other, Job):
return NotImplemented
return self.uuid == other.uuid
return self.__dict__ == other.__dict__

def __hash__(self) -> int:
"""Get the hash of the job."""
Expand Down

0 comments on commit 7a19168

Please sign in to comment.