(values: Iterable[Any])
| 210 | |
| 211 | |
| 212 | def dedupe_strings(values: Iterable[Any]) -> List[str]: |
| 213 | result: List[str] = [] |
| 214 | seen: set[str] = set() |
| 215 | for value in values: |
| 216 | cleaned = str(value or "").strip() |
| 217 | if not cleaned: |
| 218 | continue |
| 219 | marker = cleaned.casefold() |
| 220 | if marker in seen: |
| 221 | continue |
| 222 | seen.add(marker) |
| 223 | result.append(cleaned) |
| 224 | return result |
| 225 | |
| 226 | |
| 227 | def load_roles(roles_file: Path) -> Dict[str, Dict[str, Any]]: |
no outgoing calls
no test coverage detected