Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
299
def
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
test_inline_functions_non_hashable
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_inline_functions_non_hashable
Function · 0.68