Skip to content

Commit 1972b30

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

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
@@ -313,6 +313,7 @@ async def handle_call_tool(ctx: ServerRequestContext, params: Any) -> CallToolRe
313313
httpx.ASGITransport(mcp_app) as transport,
314314
):
315315
session_manager = app._session_manager
316+
assert session_manager is not None
316317

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

0 commit comments

Comments
 (0)