(values: Iterable[Any])
| 326 | |
| 327 | |
| 328 | def dedupe_strings(values: Iterable[Any]) -> List[str]: |
| 329 | result: List[str] = [] |
| 330 | seen: set[str] = set() |
| 331 | for value in values: |
| 332 | cleaned = str(value or "").strip() |
| 333 | if not cleaned: |
| 334 | continue |
| 335 | marker = cleaned.casefold() |
| 336 | if marker in seen: |
| 337 | continue |
| 338 | seen.add(marker) |
| 339 | result.append(cleaned) |
| 340 | return result |
| 341 | |
| 342 | |
| 343 | def build_initial_profile(user_meta: Dict[str, Any], role: Dict[str, Any]) -> Dict[str, Any]: |
no outgoing calls
no test coverage detected