Remove redundant brackets

This commit is contained in:
YishiMichael 2022-02-15 21:54:56 +08:00
parent 6f9df8db26
commit 719cd8cde3
No known key found for this signature in database
GPG key ID: EC615C0C5A86BC80

View file

@ -147,6 +147,6 @@ def hash_obj(obj):
return hash(tuple(frozenset(sorted(new_obj.items()))))
if isinstance(obj, (set, tuple, list)):
return hash(tuple([hash_obj(e) for e in obj]))
return hash(tuple(hash_obj(e) for e in obj))
return hash(obj)