MCPcopy Index your code
hub / github.com/pydata/xarray / hashable

Function hashable

xarray/core/utils.py:814–820  ·  view source on GitHub ↗

Determine whether `v` can be hashed.

(v: Any)

Source from the content-addressed store, hash-verified

812
813
814def hashable(v: Any) -> TypeGuard[Hashable]:
815 """Determine whether `v` can be hashed."""
816 try:
817 hash(v)
818 except TypeError:
819 return False
820 return True
821
822
823def iterable(v: Any) -> TypeGuard[Iterable[Any]]:

Callers 3

_infer_coords_and_dimsFunction · 0.90
_resolve_groupFunction · 0.90
iterable_of_hashableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…