mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-30 01:52:18 +00:00
fix(mcp): give the persistent session result cast a reason
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
421fd1ea61
commit
f9bd1a37c7
1 changed files with 1 additions and 1 deletions
|
|
@ -1248,7 +1248,7 @@ class PersistentMCPSession:
|
|||
raise RuntimeError("upstream MCP session closed")
|
||||
future: Final[asyncio.Future[object]] = asyncio.get_running_loop().create_future()
|
||||
await self._queue.put((operation, future))
|
||||
return cast(TSessionResult, await future)
|
||||
return cast(TSessionResult, await future) # cast-ok: one queue serves operations of every result type
|
||||
|
||||
def close(self) -> None:
|
||||
_ = self._task.cancel()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue