Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/encode/starlette
/ App
Class
App
tests/test_applications.py:556–557 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
554
# (like FastAPI) are compatible with the types hints for Lifespan
555
556
class
App(Starlette):
557
pass
558
559
@asynccontextmanager
560
async
def
lifespan(app: App) -> AsyncIterator[None]:
# pragma: no cover
Callers
1
test_lifespan_app_subclass
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_lifespan_app_subclass
Function · 0.68