chore: add D212 lint rule to enforce Google-style docstrings (#1892)

This commit is contained in:
Felix Weinberger 2026-01-16 16:10:52 +00:00 • committed by GitHub
commit d41d0c0128
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python3
"""
Example low-level MCP server demonstrating structured output support.
"""Example low-level MCP server demonstrating structured output support.
This example shows how to use the low-level server API to return
structured data from tools, with automatic validation against output
@ -49,9 +48,7 @@ async def list_tools() -> list[types.Tool]:
@server.call_tool()
async def call_tool(name: str, arguments: dict[str, Any]) -> Any:
"""
Handle tool call with structured output.
"""
"""Handle tool call with structured output."""
if name == "get_weather":
# city = arguments["city"] # Would be used with real weather API