Skip to content

Commit 907acce

Browse files
style: fix D212 violations - move docstring summaries to first line
1 parent b4bdb9d commit 907acce

File tree

131 files changed

+394
-823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+394
-823
lines changed

examples/fastmcp/complex_inputs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""
2-
FastMCP Complex inputs Example
1+
"""FastMCP Complex inputs Example
32
43
Demonstrates validation via pydantic with complex models.
54
"""

examples/fastmcp/desktop.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""
2-
FastMCP Desktop Example
1+
"""FastMCP Desktop Example
32
43
A simple example that exposes the desktop directory as a resource.
54
"""

examples/fastmcp/direct_call_tool_result_return.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
FastMCP Echo Server with direct CallToolResult return
3-
"""
1+
"""FastMCP Echo Server with direct CallToolResult return"""
42

53
from typing import Annotated
64

examples/fastmcp/echo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
FastMCP Echo Server
3-
"""
1+
"""FastMCP Echo Server"""
42

53
from mcp.server.fastmcp import FastMCP
64

examples/fastmcp/icons_demo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""
2-
FastMCP Icons Demo Server
1+
"""FastMCP Icons Demo Server
32
43
Demonstrates using icons with tools, resources, prompts, and implementation.
54
"""

examples/fastmcp/logging_and_progress.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
FastMCP Echo Server that sends log messages and progress updates to the client
3-
"""
1+
"""FastMCP Echo Server that sends log messages and progress updates to the client"""
42

53
import asyncio
64

examples/fastmcp/memory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
# uv pip install 'pydantic-ai-slim[openai]' asyncpg numpy pgvector
66

7-
"""
8-
Recursive memory system inspired by the human brain's clustering of memories.
7+
"""Recursive memory system inspired by the human brain's clustering of memories.
98
Uses OpenAI's 'text-embedding-3-small' model and pgvector for efficient
109
similarity search.
1110
"""

examples/fastmcp/parameter_descriptions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
FastMCP Example showing parameter descriptions
3-
"""
1+
"""FastMCP Example showing parameter descriptions"""
42

53
from pydantic import Field
64

examples/fastmcp/screenshot.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""
2-
FastMCP Screenshot Example
1+
"""FastMCP Screenshot Example
32
43
Give Claude a tool to capture and view screenshots.
54
"""
@@ -15,8 +14,7 @@
1514

1615
@mcp.tool()
1716
def take_screenshot() -> Image:
18-
"""
19-
Take a screenshot of the user's screen and return it as an image. Use
17+
"""Take a screenshot of the user's screen and return it as an image. Use
2018
this tool anytime the user wants you to look at something they're doing.
2119
"""
2220
import pyautogui

examples/fastmcp/simple_echo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""
2-
FastMCP Echo Server
3-
"""
1+
"""FastMCP Echo Server"""
42

53
from mcp.server.fastmcp import FastMCP
64

0 commit comments

Comments
 (0)