MCPcopy Index your code
hub / github.com/python/cpython / keywordonly_sum

Function keywordonly_sum

Lib/test/test_keywordonlyarg.py:10–11  ·  view source on GitHub ↗
(*, k1=0, k2)

Source from the content-addressed store, hash-verified

8def posonly_sum(pos_arg1, *arg, **kwarg):
9 return pos_arg1 + sum(arg) + sum(kwarg.values())
10def keywordonly_sum(*, k1=0, k2):
11 return k1 + k2
12def keywordonly_nodefaults_sum(*, k1, k2):
13 return k1 + k2
14def keywordonly_and_kwarg_sum(*, k1, k2, **kwarg):

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…