(path: Path)
| 18 | |
| 19 | |
| 20 | def read_table(path: Path) -> tuple[list[dict[str, str]], list[str]]: |
| 21 | with path.open(newline="", encoding="utf-8") as handle: |
| 22 | reader = csv.DictReader(handle, delimiter=detect_delimiter(path)) |
| 23 | rows = [{key: (value or "").strip() for key, value in row.items()} for row in reader] |
| 24 | return rows, list(reader.fieldnames or []) |
| 25 | |
| 26 | |
| 27 | def resolve_path(raw: str | None, base: Path) -> Path | None: |
no test coverage detected