Parse a Python file into an AST module.
(path: Path)
| 34 | |
| 35 | |
| 36 | def _parse_file(path: Path) -> ast.Module: |
| 37 | """Parse a Python file into an AST module.""" |
| 38 | return ast.parse(path.read_text(), filename=str(path)) |
| 39 | |
| 40 | |
| 41 | def _find_classes(tree: ast.Module) -> dict[str, list[str]]: |
no test coverage detected