MCPcopy
hub / github.com/openai/openai-python / _md_pycon_match

Function _md_pycon_match

scripts/utils/ruffen-docs.py:97–100  ·  view source on GitHub ↗
(match: Match[str])

Source from the content-addressed store, hash-verified

95 return code
96
97 def _md_pycon_match(match: Match[str]) -> str:
98 code = _pycon_match(match)
99 code = textwrap.indent(code, match["indent"])
100 return f"{match['before']}{code}{match['after']}"
101
102 src = MD_RE.sub(_md_match, src)
103 src = MD_PYCON_RE.sub(_md_pycon_match, src)

Callers

nothing calls this directly

Calls 1

_pycon_matchFunction · 0.85

Tested by

no test coverage detected