File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/snippets/servers Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -934,7 +934,7 @@ def add_two(n: int) -> int:
934934
935935# Create a combined lifespan to manage both session managers
936936@contextlib.asynccontextmanager
937- async def lifespan (app ):
937+ async def lifespan (app : Starlette ):
938938 async with contextlib.AsyncExitStack() as stack:
939939 await stack.enter_async_context(echo_mcp.session_manager.run())
940940 await stack.enter_async_context(math_mcp.session_manager.run())
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def add_two(n: int) -> int:
3232
3333# Create a combined lifespan to manage both session managers
3434@contextlib .asynccontextmanager
35- async def lifespan (app ):
35+ async def lifespan (app : Starlette ):
3636 async with contextlib .AsyncExitStack () as stack :
3737 await stack .enter_async_context (echo_mcp .session_manager .run ())
3838 await stack .enter_async_context (math_mcp .session_manager .run ())
You can’t perform that action at this time.
0 commit comments