MCPcopy Create free account
hub / github.com/dask/dask / NonHashableCallable

Class NonHashableCallable

dask/tests/test_optimization.py:300–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299def test_inline_functions_non_hashable():
300 class NonHashableCallable:
301 def __call__(self, a):
302 return a + 1
303
304 def __hash__(self):
305 raise TypeError("Not hashable")
306
307 nohash = NonHashableCallable()
308

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…