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

Function posonly_sum

Lib/test/test_keywordonlyarg.py:8–9  ·  view source on GitHub ↗
(pos_arg1, *arg, **kwarg)

Source from the content-addressed store, hash-verified

6import unittest
7
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):

Callers 1

testFunctionCallMethod · 0.85

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…