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

Function native_function_doc_initializer

mypyc/codegen/emit.py:1483–1488  ·  view source on GitHub ↗
(func: FuncIR)

Source from the content-addressed store, hash-verified

1481
1482
1483def native_function_doc_initializer(func: FuncIR) -> str:
1484 text_sig = get_text_signature(func)
1485 if text_sig is None:
1486 return "NULL"
1487 docstring = f"{text_sig}\n--\n\n"
1488 return c_string_initializer(docstring.encode("ascii", errors="backslashreplace"))

Callers 3

emit_module_methodsMethod · 0.90
generate_methods_tableFunction · 0.90

Calls 3

get_text_signatureFunction · 0.90
c_string_initializerFunction · 0.90
encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…