fix: correct url_get return type annotation to dict

url_get returns await resp.json() which is a dict, not aiohttp.ClientResponse.
The wrong annotation was introduced in the original PR and would mislead
static analysis tools into expecting a response object from callers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-23 08:14:24 -05:00
parent 0c0eece972
commit 82a8dac950

View File

@ -76,7 +76,7 @@ async def db_get(
raise ValueError(f"DB: {e}")
async def url_get(url: str, timeout: int = 3) -> aiohttp.ClientResponse:
async def url_get(url: str, timeout: int = 3) -> dict:
log_string = f"get:\n{url}"
logger.info(log_string) if master_debug else logger.debug(log_string)