bundlewrap/libs/hashable.py
mwiegand da11f49cfb wip
2021-07-13 19:38:54 +02:00

9 lines
202 B
Python

import json
class hdict(dict):
def __hash__(self):
return hash(json.dumps(self, sorted=True))
class hlist(list):
def __hash__(self):
return hash(json.dumps(self, sorted=True))