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:177–181 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
175
176
177
def
test_dispatch_kwargs():
178
foo = Dispatch()
179
foo.register(int,
lambda
a, b=10: a + b)
180
181
assert foo(1, b=20) == 21
182
183
184
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