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

Co-authored-by: Kun Yang <10774721+ykun91@users.noreply.github.com>
This commit is contained in:
Kun Yang 2025-08-10 21:52:52 +09:00 committed by GitHub
commit ed5a83301d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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