Kun Yang Kun Yang commited on
Commit
e4bf853
·
unverified ·
1 Parent(s): 60b71f5

fix(type): lifespan is partially unknown (#1389)

Browse files

Co-authored-by: Kun Yang <10774721+ykun91@users.noreply.github.com>

Files changed (1) hide show
  1. src/fastmcp/server/http.py +1 -1
src/fastmcp/server/http.py CHANGED
@@ -72,7 +72,7 @@ _current_http_request: ContextVar[Request | None] = ContextVar(
72
 
73
  class StarletteWithLifespan(Starlette):
74
  @property
75
- def lifespan(self) -> Lifespan:
76
  return self.router.lifespan_context
77
 
78
 
 
72
 
73
  class StarletteWithLifespan(Starlette):
74
  @property
75
+ def lifespan(self) -> Lifespan[Starlette]:
76
  return self.router.lifespan_context
77
 
78