Skip to content

Commit a7907d0

Browse files
wiggzzclaude
andcommitted
Add assertion for session_manager not None (pyright)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 35f08c7 commit a7907d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/server/test_streamable_http_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ async def handle_call_tool(ctx: ServerRequestContext, params: Any) -> CallToolRe
314314
httpx.ASGITransport(mcp_app) as transport,
315315
):
316316
session_manager = app._session_manager
317+
assert session_manager is not None
317318

318319
async def make_and_abandon_tool_call():
319320
async with httpx.AsyncClient(transport=transport, base_url=f"http://{host}", timeout=30.0) as http_client:

0 commit comments

Comments
 (0)