Unpack settings in FastMCP (#1198)
Some checks failed
Main branch checks / checks (push) Has been cancelled

This commit is contained in:
Marcelo Trylesinski 2025-07-26 10:37:48 +02:00 • committed by GitHub
commit 959d4e39ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ from mcp.shared.session import RequestResponder
logger = logging.getLogger(__name__)
LifespanResultT = TypeVar("LifespanResultT")
LifespanResultT = TypeVar("LifespanResultT", default=Any)
RequestT = TypeVar("RequestT", default=Any)
# type aliases for tool call results
@ -118,7 +118,7 @@ class NotificationOptions:
@asynccontextmanager
async def lifespan(server: Server[LifespanResultT, RequestT]) -> AsyncIterator[object]:
async def lifespan(_: Server[LifespanResultT, RequestT]) -> AsyncIterator[dict[str, Any]]:
"""Default lifespan context manager that does nothing.
Args: