(value: Any)
| 255 | |
| 256 | |
| 257 | def _iter_existing_paths(value: Any) -> list[Path]: |
| 258 | paths: list[Path] = [] |
| 259 | if isinstance(value, dict): |
| 260 | for item in value.values(): |
| 261 | paths.extend(_iter_existing_paths(item)) |
| 262 | elif isinstance(value, (list, tuple, set)): |
| 263 | for item in value: |
| 264 | paths.extend(_iter_existing_paths(item)) |
| 265 | elif isinstance(value, str): |
| 266 | candidate = Path(value).expanduser() |
| 267 | if candidate.exists() and candidate.is_file(): |
| 268 | paths.append(candidate.resolve()) |
| 269 | return paths |
| 270 | |
| 271 | |
| 272 | def input_checksums(inputs: dict[str, Any] | None) -> list[dict[str, Any]]: |
no test coverage detected