(
lines: list[str],
index: int,
context: tuple[int, int],
)
| 852 | |
| 853 | |
| 854 | def print_context( |
| 855 | lines: list[str], |
| 856 | index: int, |
| 857 | context: tuple[int, int], |
| 858 | ) -> None: |
| 859 | # context = (context_before, context_after) |
| 860 | for i in range(index - context[0], index + context[1] + 1): |
| 861 | if 0 <= i < len(lines): |
| 862 | print(f"{'>' if i == index else ':'} {lines[i].rstrip()}") |
| 863 | |
| 864 | |
| 865 | def _ignore_word_sub( |
no outgoing calls
no test coverage detected
searching dependent graphs…