Skip to content

Commit d3986f2

Browse files
committed
ruff check/formatting fixes
1 parent 1746ea1 commit d3986f2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,7 @@ async def get_prompt(
879879

880880

881881
def _convert_to_content(
882-
result: Any,
883-
schema: dict[str, Any] | None
882+
result: Any, schema: dict[str, Any] | None
884883
) -> Sequence[TextContent | ImageContent | EmbeddedResource]:
885884
if schema is None:
886885
"""Convert a result to a sequence of content objects."""
@@ -894,7 +893,11 @@ def _convert_to_content(
894893
return [result.to_image_content()]
895894

896895
if isinstance(result, list | tuple):
897-
return list(chain.from_iterable(_convert_to_content(item, schema) for item in result)) # type: ignore[reportUnknownVariableType]
896+
return list(
897+
chain.from_iterable(
898+
_convert_to_content(item, schema) for item in result
899+
)
900+
) # type: ignore[reportUnknownVariableType]
898901

899902
if not isinstance(result, str):
900903
result = pydantic_core.to_json(result, fallback=str, indent=2).decode()

0 commit comments

Comments
 (0)