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

Function iterable_of_hashable

xarray/core/utils.py:832–838  ·  view source on GitHub ↗

Determine whether `v` is an Iterable of Hashables.

(v: Any)

Source from the content-addressed store, hash-verified

830
831
832def iterable_of_hashable(v: Any) -> TypeGuard[Iterable[Hashable]]:
833 """Determine whether `v` is an Iterable of Hashables."""
834 try:
835 it = iter(v)
836 except TypeError:
837 return False
838 return all(hashable(elm) for elm in it)
839
840
841def decode_numpy_dict_values(attrs: Mapping[K, V]) -> dict[K, V]:

Callers

nothing calls this directly

Calls 1

hashableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…