We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c49c2 commit 935fe5dCopy full SHA for 935fe5d
mcp_python/server/__init__.py
@@ -2,7 +2,7 @@
2
import logging
3
import warnings
4
from collections.abc import Awaitable, Callable
5
-from typing import Any
+from typing import Any, Sequence
6
7
from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream
8
from pydantic import AnyUrl
@@ -337,7 +337,7 @@ def call_tool(self):
337
338
def decorator(
339
func: Callable[
340
- ..., Awaitable[list[str | types.ImageContent | types.EmbeddedResource]]
+ ..., Awaitable[Sequence[str | types.ImageContent | types.EmbeddedResource]]
341
],
342
):
343
logger.debug("Registering handler for CallToolRequest")
0 commit comments