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

Function _md_match

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

Source from the content-addressed store, hash-verified

43 errors.append(CodeBlockError(match.start(), e))
44
45 def _md_match(match: Match[str]) -> str:
46 code = textwrap.dedent(match["code"])
47 with _collect_error(match):
48 code = format_code_block(code)
49 code = textwrap.indent(code, match["indent"])
50 return f"{match['before']}{code}{match['after']}"
51
52 def _pycon_match(match: Match[str]) -> str:
53 code = ""

Callers

nothing calls this directly

Calls 2

_collect_errorFunction · 0.85
format_code_blockFunction · 0.85

Tested by

no test coverage detected