fix: ty warnings

This commit is contained in:
2026-06-27 08:03:26 -04:00
parent 3b4fab3e70
commit 764288c924
2 changed files with 3 additions and 6 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
from typing import Awaitable, cast
import pytest
import fakeredis.aioredis
from redis.asyncio import Redis
@@ -22,7 +20,7 @@ async def fake_redis():
async def real_redis():
client = Redis.from_url("redis://localhost:6379/15")
try:
await cast(Awaitable[bool], client.ping())
await client.ping()
except Exception:
await client.aclose()
pytest.skip("Redis not available at localhost:6379")