MCPcopy 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
177def 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
184def test_dispatch_variadic_on_first_argument():

Callers

nothing calls this directly

Calls 3

registerMethod · 0.95
DispatchClass · 0.90
fooFunction · 0.70

Tested by

no test coverage detected