MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _md_match

Function _md_match

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

Source from the content-addressed store, hash-verified

62 )
63
64 def _md_match(match: Match[str]) -> str:
65 code = textwrap.indent(formatted[textwrap.dedent(match["code"])], match["indent"])
66 return f"{match['before']}{code}{match['after']}"
67
68 for filename, src in contents.items():
69 new_contents = MD_RE.sub(_md_match, src)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected