fix: suppress mypy no-untyped-call for redis.asyncio.from_url

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hugh Brown
2026-03-04 14:19:15 -07:00
committed by Abhimanyu Saharan
parent e053fd4a46
commit e80cf9f3c8

View File

@@ -32,7 +32,7 @@ def _get_async_redis(redis_url: str) -> aioredis.Redis:
"""Return a shared async Redis client for *redis_url*, creating one if needed."""
client = _async_redis_clients.get(redis_url)
if client is None:
client = aioredis.from_url(redis_url)
client = aioredis.from_url(redis_url) # type: ignore[no-untyped-call]
_async_redis_clients[redis_url] = client
return client