MCPcopy Create free account
hub / github.com/fastapi/fastapi / get_code_block_lang

Function get_code_block_lang

scripts/doc_parsing_utils.py:475–479  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

473
474
475def get_code_block_lang(line: str) -> str:
476 match = CODE_BLOCK_LANG_RE.match(line)
477 if match:
478 return match.group(1)
479 return ""
480
481
482def extract_multiline_code_blocks(text: list[str]) -> list[MultilineCodeBlockInfo]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected