Spaces:
Running
Running
Kun Yang Kun Yang commited on
fix(type): lifespan is partially unknown (#1389)
Browse filesCo-authored-by: Kun Yang <10774721+ykun91@users.noreply.github.com>
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 |
|