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:
934
934
935
935
# Create a combined lifespan to manage both session managers
936
936
@contextlib.asynccontextmanager
937
- async def lifespan (app ):
937
+ async def lifespan (app : Starlette ):
938
938
async with contextlib.AsyncExitStack() as stack:
939
939
await stack.enter_async_context(echo_mcp.session_manager.run())
940
940
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:
32
32
33
33
# Create a combined lifespan to manage both session managers
34
34
@contextlib .asynccontextmanager
35
- async def lifespan (app ):
35
+ async def lifespan (app : Starlette ):
36
36
async with contextlib .AsyncExitStack () as stack :
37
37
await stack .enter_async_context (echo_mcp .session_manager .run ())
38
38
await stack .enter_async_context (math_mcp .session_manager .run ())
You can’t perform that action at this time.
0 commit comments