(value: Any)
| 139 | |
| 140 | |
| 141 | def _dedupe_string_list(value: Any) -> list[str]: |
| 142 | if value in ("", None, [], {}): |
| 143 | return [] |
| 144 | values = value if isinstance(value, list) else [value] |
| 145 | deduped: list[str] = [] |
| 146 | for item in values: |
| 147 | cleaned = normalize_whitespace(str(item)) |
| 148 | if cleaned and cleaned not in deduped: |
| 149 | deduped.append(cleaned) |
| 150 | return deduped |
| 151 | |
| 152 | |
| 153 | def _append_reason(reasons: list[str], reason: str) -> None: |
no test coverage detected