Skip to content

Commit 49482e1

Browse files
ashwin-antclaude
andauthored
fix: correct mypy type ignore error codes for MCP decorators (#379)
Update type: ignore comments to use `untyped-decorator` instead of `misc` to match the actual mypy error codes reported in CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent f21f63e commit 49482e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/claude_agent_sdk/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def create_sdk_mcp_server(
218218
tool_map = {tool_def.name: tool_def for tool_def in tools}
219219

220220
# Register list_tools handler to expose available tools
221-
@server.list_tools() # type: ignore[no-untyped-call,misc]
221+
@server.list_tools() # type: ignore[no-untyped-call,untyped-decorator]
222222
async def list_tools() -> list[Tool]:
223223
"""Return the list of available tools."""
224224
tool_list = []
@@ -264,7 +264,7 @@ async def list_tools() -> list[Tool]:
264264
return tool_list
265265

266266
# Register call_tool handler to execute tools
267-
@server.call_tool() # type: ignore[misc]
267+
@server.call_tool() # type: ignore[untyped-decorator]
268268
async def call_tool(name: str, arguments: dict[str, Any]) -> Any:
269269
"""Execute a tool by name with given arguments."""
270270
if name not in tool_map:

0 commit comments

Comments
 (0)