Spaces:
Running
Running
nate nowack Claude commited on
fix: add type hint to custom_route decorator (#1210)
Browse files
src/fastmcp/server/server.py
CHANGED
|
@@ -411,7 +411,10 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 411 |
methods: list[str],
|
| 412 |
name: str | None = None,
|
| 413 |
include_in_schema: bool = True,
|
| 414 |
-
)
|
|
|
|
|
|
|
|
|
|
| 415 |
"""
|
| 416 |
Decorator to register a custom HTTP route on the FastMCP server.
|
| 417 |
|
|
|
|
| 411 |
methods: list[str],
|
| 412 |
name: str | None = None,
|
| 413 |
include_in_schema: bool = True,
|
| 414 |
+
) -> Callable[
|
| 415 |
+
[Callable[[Request], Awaitable[Response]]],
|
| 416 |
+
Callable[[Request], Awaitable[Response]],
|
| 417 |
+
]:
|
| 418 |
"""
|
| 419 |
Decorator to register a custom HTTP route on the FastMCP server.
|
| 420 |
|