Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2168f2

Browse files
committed
pyright fixes
1 parent d3986f2 commit c2168f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,9 +895,10 @@ def _convert_to_content(
895895
if isinstance(result, list | tuple):
896896
return list(
897897
chain.from_iterable(
898-
_convert_to_content(item, schema) for item in result
898+
_convert_to_content(item, schema)
899+
for item in result # type: ignore[reportUnknownVariableType]
899900
)
900-
) # type: ignore[reportUnknownVariableType]
901+
)
901902

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

0 commit comments

Comments
 (0)