nate nowack Claude commited on
Commit
e42c7fe
·
unverified ·
1 Parent(s): a024e03

fix: add type hint to custom_route decorator (#1210)

Browse files
Files changed (1) hide show
  1. src/fastmcp/server/server.py +4 -1
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