(match: Match[str])
| 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 = "" |
nothing calls this directly
no test coverage detected