diff --git a/src/fastmcp/server/http.py b/src/fastmcp/server/http.py index 1e0978d62..13c13ea73 100644 --- a/src/fastmcp/server/http.py +++ b/src/fastmcp/server/http.py @@ -72,7 +72,7 @@ _current_http_request: ContextVar[Request | None] = ContextVar( class StarletteWithLifespan(Starlette): @property - def lifespan(self) -> Lifespan: + def lifespan(self) -> Lifespan[Starlette]: return self.router.lifespan_context