Fix ruff format

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
William Easton 2026-04-13 08:20:01 -05:00
commit e1b2c36e51
No known key found for this signature in database
2 changed files with 3 additions and 8 deletions

View file

@ -621,9 +621,7 @@ class FastMCP(
)
# Core logic: list tools
with server_span(
"tools/list", "tools/list", self.name, "tool", ""
):
with server_span("tools/list", "tools/list", self.name, "tool", ""):
# Get all tools, apply session transforms, then filter enabled
# and model-visible (app-only tools are hidden from the model).
tools = list(await super().list_tools())
@ -1028,9 +1026,7 @@ class FastMCP(
)
# Core logic: list prompts
with server_span(
"prompts/list", "prompts/list", self.name, "prompt", ""
):
with server_span("prompts/list", "prompts/list", self.name, "prompt", ""):
# Get all prompts, apply session transforms, then filter enabled
prompts = list(await super().list_prompts())
prompts = await apply_session_transforms(prompts)

View file

@ -70,8 +70,7 @@ class TestClientListToolsTracing:
(
s
for s in tools_list_spans
if s.attributes is not None
and "fastmcp.server.name" in s.attributes
if s.attributes is not None and "fastmcp.server.name" in s.attributes
),
None,
)