From 7b16106fd2edafec50e109f46b79945a69db26ca Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Wed, 17 Jul 2024 14:46:37 -0400 Subject: [PATCH] update __hash__ --- src/ga4gh/vrs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ga4gh/vrs/models.py b/src/ga4gh/vrs/models.py index 3cbe8246..e98ea17a 100644 --- a/src/ga4gh/vrs/models.py +++ b/src/ga4gh/vrs/models.py @@ -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()