(values: Iterable[Any])
| 349 | |
| 350 | |
| 351 | def dedupe_strings(values: Iterable[Any]) -> List[str]: |
| 352 | result: List[str] = [] |
| 353 | seen: set[str] = set() |
| 354 | for value in values: |
| 355 | cleaned = str(value or "").strip() |
| 356 | if not cleaned: |
| 357 | continue |
| 358 | marker = cleaned.casefold() |
| 359 | if marker in seen: |
| 360 | continue |
| 361 | seen.add(marker) |
| 362 | result.append(cleaned) |
| 363 | return result |
| 364 | |
| 365 | |
| 366 | def build_initial_profile(user_meta: Dict[str, Any], role: Dict[str, Any]) -> Dict[str, Any]: |
no outgoing calls
no test coverage detected