MCPcopy Index your code
hub / github.com/fastapi/fastapi / State

Class State

tests/test_router_events.py:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10class State(BaseModel):
11 app_startup: bool = False
12 app_shutdown: bool = False
13 router_startup: bool = False
14 router_shutdown: bool = False
15 sub_router_startup: bool = False
16 sub_router_shutdown: bool = False
17
18
19@pytest.fixture

Callers 2

__init__Method · 0.85
stateFunction · 0.85

Calls

no outgoing calls

Tested by 1

stateFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…