Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_dispatch_kwargs
Function
test_dispatch_kwargs
dask/tests/test_utils.py:176–180 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
174
175
176
def
test_dispatch_kwargs():
177
foo = Dispatch()
178
foo.register(int,
lambda
a, b=10: a + b)
179
180
assert foo(1, b=20) == 21
181
182
183
def
test_dispatch_variadic_on_first_argument():
Callers
nothing calls this directly
Calls
3
register
Method · 0.95
Dispatch
Class · 0.90
foo
Function · 0.70
Tested by
no test coverage detected