(value: Any, *, field_name: str)
| 68 | |
| 69 | |
| 70 | def _coerce_path_list(value: Any, *, field_name: str) -> list[str]: |
| 71 | if value in (None, ""): |
| 72 | return [] |
| 73 | if isinstance(value, str): |
| 74 | return [value] |
| 75 | if isinstance(value, Sequence) and not isinstance(value, (str, bytes, bytearray)): |
| 76 | return [str(item) for item in value] |
| 77 | raise ConfigError(f"`{field_name}` must be a string or list of strings.") |
| 78 | |
| 79 | |
| 80 | def _load_merged_yaml(path: Path, visited: set[Path] | None = None) -> dict[str, Any]: |
no test coverage detected