mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 13:04:18 +02:00
fix(type): lifespan is partially unknown (#1389)
Co-authored-by: Kun Yang <10774721+ykun91@users.noreply.github.com>
This commit is contained in:
parent
c3f4623690
commit
ed5a83301d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue