(root: Path)
| 15 | |
| 16 | |
| 17 | def module_to_file_map(root: Path) -> dict[str, Path]: |
| 18 | mapping = {} |
| 19 | for file in root.rglob("*.py"): |
| 20 | mod = path_to_module(root, file) |
| 21 | mapping[mod] = file |
| 22 | return mapping |
| 23 | |
| 24 | |
| 25 | def resolve_relative_import(current_module: str, module: str | None, level: int) -> str | None: |
no test coverage detected