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

Function c_string_array_initializer

mypyc/codegen/emitmodule.py:1616–1622  ·  view source on GitHub ↗
(components: list[bytes])

Source from the content-addressed store, hash-verified

1614
1615
1616def c_string_array_initializer(components: list[bytes]) -> str:
1617 result = []
1618 result.append("{\n")
1619 for s in components:
1620 result.append(" " + c_string_initializer(s) + ",\n")
1621 result.append("}")
1622 return "".join(result)

Callers 1

Calls 3

c_string_initializerFunction · 0.90
appendMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…