Skip to content

Commit 50d1248

Browse files
committed
add type
1 parent d87f26d commit 50d1248

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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())

examples/snippets/servers/streamable_starlette_mount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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())

0 commit comments

Comments
 (0)