From 0cd708e7a0968d5a89821de7d373c1c4c63965a7 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Fri, 13 Nov 2026 17:32:51 +0300 Subject: [PATCH] fix: annotate Redis fixture as an async iterator --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()