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

Function emit_instance

mypyc/codegen/emitclass.py:1317–1319  ·  view source on GitHub ↗
(fn: FuncIR, fn_name: str)

Source from the content-addressed store, hash-verified

1315 error_stmt = " return 2;"
1316
1317 def emit_instance(fn: FuncIR, fn_name: str) -> str:
1318 filepath = emitter.filepath or ""
1319 return emitter.emit_cpyfunction_instance(fn, fn_name, filepath, error_stmt)
1320
1321 def success() -> None:
1322 emitter.emit_line("return 1;")

Callers 1

generate_coroutine_setupFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…