(session: aiohttp.ClientSession, query: str)
| 88 | |
| 89 | |
| 90 | async def _search_users(session: aiohttp.ClientSession, query: str) -> list[dict]: |
| 91 | data = await _get( |
| 92 | session, |
| 93 | f"{_API_BASE}/search/users", |
| 94 | params={"q": query, "per_page": 5}, |
| 95 | ) |
| 96 | if not isinstance(data, dict): |
| 97 | return [] |
| 98 | return data.get("items", []) |
| 99 | |
| 100 | |
| 101 | def _format_profile(user: dict, repos: list[dict], emails: set[str]) -> str: |
no test coverage detected