MCPcopy Create free account
hub / github.com/MagicStack/contextvars / func

Method func

tests/test_basics.py:104–107  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

102 ctx = contextvars.Context()
103
104 def func(*args, **kwargs):
105 kwargs['spam'] = 'foo'
106 args += ('bar',)
107 return args, kwargs
108
109 for f in (func, functools.partial(func)):
110 # partial doesn't support FASTCALL

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected