diff --git a/stubs/redis/redis/asyncio/retry.pyi b/stubs/redis/redis/asyncio/retry.pyi index f6c2f9594..1579606a5 100644 --- a/stubs/redis/redis/asyncio/retry.pyi +++ b/stubs/redis/redis/asyncio/retry.pyi @@ -1,5 +1,5 @@ from collections.abc import Awaitable, Callable, Iterable -from typing import Any, TypeVar +from typing import TypeVar from redis.backoff import AbstractBackoff from redis.exceptions import RedisError @@ -9,4 +9,4 @@ _T = TypeVar("_T") class Retry: def __init__(self, backoff: AbstractBackoff, retries: int, supported_errors: tuple[type[RedisError], ...] = ...) -> None: ... def update_supported_errors(self, specified_errors: Iterable[type[RedisError]]) -> None: ... - async def call_with_retry(self, do: Callable[[], Awaitable[_T]], fail: Callable[[RedisError], Any]) -> _T: ... + async def call_with_retry(self, do: Callable[[], Awaitable[_T]], fail: Callable[[RedisError], Awaitable[object]]) -> _T: ...