From d02cfcde97da302e52210e4ddbea5cd1fc9f85c3 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Fri, 23 Aug 2024 20:50:13 -0700 Subject: [PATCH] fix(asyncify.py): fix linting errors --- litellm/litellm_core_utils/asyncify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/litellm_core_utils/asyncify.py b/litellm/litellm_core_utils/asyncify.py index bfb3a8254a..6287263f89 100644 --- a/litellm/litellm_core_utils/asyncify.py +++ b/litellm/litellm_core_utils/asyncify.py @@ -1,5 +1,5 @@ import functools -from typing import Awaitable, Callable +from typing import Awaitable, Callable, Optional import anyio from anyio import to_thread @@ -21,7 +21,7 @@ def asyncify( function: Callable[T_ParamSpec, T_Retval], *, cancellable: bool = False, - limiter: anyio.CapacityLimiter | None = None, + limiter: Optional[anyio.CapacityLimiter] = None, ) -> Callable[T_ParamSpec, Awaitable[T_Retval]]: """ Take a blocking function and create an async one that receives the same