(profile: Dict[str, Any])
| 406 | |
| 407 | |
| 408 | def make_profile_text(profile: Dict[str, Any]) -> str: |
| 409 | parts = [ |
| 410 | profile.get("description", ""), |
| 411 | " ".join(profile.get("terms", []) or []), |
| 412 | " ".join(profile.get("directions", {}).keys()), |
| 413 | ] |
| 414 | return " ".join(str(part or "") for part in parts if part) |
| 415 | |
| 416 | |
| 417 | @dataclass |
no test coverage detected