Skip to content

Commit 758107f

Browse files
author
skyvanguard
committed
fix: add missing type annotations in test file
1 parent f501dcc commit 758107f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/issues/test_1648_client_disconnect_500.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
from mcp.server import Server
2222
from mcp.server.streamable_http_manager import StreamableHTTPSessionManager
23-
from mcp.types import Tool
23+
from mcp.types import TextContent, Tool
2424

2525
SERVER_NAME = "test_client_disconnect_server"
2626

@@ -42,10 +42,10 @@ async def handle_list_tools() -> list[Tool]:
4242
]
4343

4444
@self.call_tool()
45-
async def handle_call_tool(name: str, arguments: dict) -> list:
45+
async def handle_call_tool(name: str, arguments: dict[str, object]) -> list[TextContent]:
4646
if name == "slow_tool":
4747
await anyio.sleep(10)
48-
return [{"type": "text", "text": "done"}]
48+
return [TextContent(type="text", text="done")]
4949
raise ValueError(f"Unknown tool: {name}")
5050

5151

0 commit comments

Comments
 (0)