MCPcopy Index your code
hub / github.com/RustPython/RustPython / keywordonly_and_kwarg_sum

Function keywordonly_and_kwarg_sum

Lib/test/test_keywordonlyarg.py:14–15  ·  view source on GitHub ↗
(*, k1, k2, **kwarg)

Source from the content-addressed store, hash-verified

12def keywordonly_nodefaults_sum(*, k1, k2):
13 return k1 + k2
14def keywordonly_and_kwarg_sum(*, k1, k2, **kwarg):
15 return k1 + k2 + sum(kwarg.values())
16def mixedargs_sum(a, b=0, *arg, k1, k2=0):
17 return a + b + k1 + k2 + sum(arg)
18def mixedargs_sum2(a, b=0, *arg, k1, k2=0, **kwargs):

Callers 1

testFunctionCallMethod · 0.85

Calls 2

sumFunction · 0.50
valuesMethod · 0.45

Tested by

no test coverage detected