mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
fix(router.py): fix linting errors
This commit is contained in:
parent
bfaed56ffb
commit
dc17f63d0b
1 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ class Router:
|
|||
with concurrent.futures.ThreadPoolExecutor(max_workers=1) as executor:
|
||||
# Submit the function to the executor with a timeout
|
||||
future = executor.submit(self.function_with_fallbacks, **kwargs)
|
||||
response = future.result(timeout=self.timeout)
|
||||
response = future.result(timeout=self.timeout) # type: ignore
|
||||
|
||||
return response
|
||||
except Exception as e:
|
||||
|
@ -182,7 +182,7 @@ class Router:
|
|||
kwargs["num_retries"] = self.num_retries
|
||||
|
||||
# Use asyncio.timeout to enforce the timeout
|
||||
async with asyncio.timeout(self.timeout):
|
||||
async with asyncio.timeout(self.timeout): # type: ignore
|
||||
response = await self.async_function_with_fallbacks(**kwargs)
|
||||
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue