MCPcopy Index your code
hub / github.com/python/mypy / legacy_wrapper_function_header

Function legacy_wrapper_function_header

mypyc/codegen/emitwrapper.py:221–224  ·  view source on GitHub ↗
(fn: FuncIR, names: NameGenerator)

Source from the content-addressed store, hash-verified

219
220
221def legacy_wrapper_function_header(fn: FuncIR, names: NameGenerator) -> str:
222 return "PyObject *{prefix}{name}(PyObject *self, PyObject *args, PyObject *kw)".format(
223 prefix=PREFIX, name=fn.cname(names)
224 )
225
226
227def generate_legacy_wrapper_function(

Callers 2

Calls 2

formatMethod · 0.45
cnameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…