(profile: Dict[str, Any])
| 383 | |
| 384 | |
| 385 | def make_profile_text(profile: Dict[str, Any]) -> str: |
| 386 | parts = [ |
| 387 | profile.get("description", ""), |
| 388 | " ".join(profile.get("terms", []) or []), |
| 389 | " ".join(profile.get("directions", {}).keys()), |
| 390 | ] |
| 391 | return " ".join(str(part or "") for part in parts if part) |
| 392 | |
| 393 | |
| 394 | @dataclass |
no test coverage detected