fix(types): T5 — narrow AsyncClient|None with inline if; rename loop variable t→task to avoid no-redef

This commit is contained in:
2026-05-01 01:53:10 -04:00
parent d187304e99
commit f6e67c036d
7 changed files with 17 additions and 17 deletions

View File

@@ -148,7 +148,7 @@ async def deliver(
url = sub["url"]
owns_client = client is None
if owns_client:
if client is None:
client = httpx.AsyncClient(timeout=timeout_s)
last_status: Optional[int] = None

View File

@@ -85,7 +85,7 @@ async def webhook_worker(
shutdown = asyncio.Event()
owns_http = http_client is None
if owns_http:
if http_client is None:
http_client = httpx.AsyncClient(timeout=10.0)
try: