Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Oct 18, 2024
1 parent c5abce1 commit 91db76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sisyphus/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def sis_hash_helper(obj):
byte_list += map(sis_hash_helper, obj)
elif type(obj) in _BasicSetTypes:
byte_list += sorted(map(sis_hash_helper, obj))
elif type(obj) in _BasicDictTypes:
elif isinstance(obj, _BasicDictTypes):
# sort items to ensure they are always in the same order
byte_list += sorted(map(sis_hash_helper, obj.items()))
elif isfunction(obj):
Expand Down

0 comments on commit 91db76f

Please sign in to comment.