Skip to content

Commit

Permalink
Compatibility with ray.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-kidger committed Aug 1, 2024
1 parent 317cc9e commit 8743639
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jaxtyping/_array_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ def __eq__(cls, other):
return cls._get_props() == other._get_props()

def __hash__(cls):
return hash(cls._get_props())
# Does not use `_get_props` as these attributes don't necessarily exist
# during depickling. See #198.
return 0

return MetaAbstractArray

Expand Down

0 comments on commit 8743639

Please sign in to comment.