mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(asyncify.py): fix linting errors
This commit is contained in:
parent
d12ec470f7
commit
d02cfcde97
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
import functools
|
import functools
|
||||||
from typing import Awaitable, Callable
|
from typing import Awaitable, Callable, Optional
|
||||||
|
|
||||||
import anyio
|
import anyio
|
||||||
from anyio import to_thread
|
from anyio import to_thread
|
||||||
|
@ -21,7 +21,7 @@ def asyncify(
|
||||||
function: Callable[T_ParamSpec, T_Retval],
|
function: Callable[T_ParamSpec, T_Retval],
|
||||||
*,
|
*,
|
||||||
cancellable: bool = False,
|
cancellable: bool = False,
|
||||||
limiter: anyio.CapacityLimiter | None = None,
|
limiter: Optional[anyio.CapacityLimiter] = None,
|
||||||
) -> Callable[T_ParamSpec, Awaitable[T_Retval]]:
|
) -> Callable[T_ParamSpec, Awaitable[T_Retval]]:
|
||||||
"""
|
"""
|
||||||
Take a blocking function and create an async one that receives the same
|
Take a blocking function and create an async one that receives the same
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue