Skip to content

Commit

Permalink
update __hash__
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Jul 17, 2024
1 parent f6efce4 commit 7b16106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ga4gh/vrs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class _ValueObject(_DomainEntity):
"""

def __hash__(self):
return self.model_dump_json().__hash__()
return encode_canonical_json(self.ga4gh_serialize()).decode("utf-8").__hash__()

def ga4gh_serialize(self) -> Dict:
out = OrderedDict()
Expand Down

0 comments on commit 7b16106

Please sign in to comment.