Skip to content

Commit

Permalink
Unhashable type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
parasj committed Jan 25, 2022
1 parent d970d28 commit 313d2d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skylark/replicate/replication_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def from_dict(topology_dict: Dict):
region=topology_dict["region"],
instance_idx=topology_dict["instance_idx"],
)

def __hash__(self) -> int:
return hash(self.region) + hash(self.instance_idx)


class ReplicationTopology:
Expand Down

0 comments on commit 313d2d9

Please sign in to comment.