diff --git a/tests/conftest.py b/tests/conftest.py index d9e5c80..167b68e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,6 @@ import os import uuid +from collections.abc import AsyncIterator import pytest from redis.asyncio import Redis @@ -11,7 +12,7 @@ @pytest.fixture -async def redis_client() -> Redis: # ty: ignore[invalid-return-type] +async def redis_client() -> AsyncIterator[Redis]: client = Redis.from_url(REDIS_URL) try: await client.ping()