MCPcopy 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
176def 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
183def 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