File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ sqlalchemy = "*"
25
25
uvicorn = " *"
26
26
27
27
[packages ]
28
- starlette = " ==0.12.8 "
28
+ starlette = " ==0.12.9 "
29
29
pydantic = " ==0.32.2"
30
30
databases = {extras = [" sqlite" ],version = " *" }
31
31
hypercorn = " *"
Original file line number Diff line number Diff line change 15
15
from fastapi .openapi .utils import get_openapi
16
16
from fastapi .params import Depends
17
17
from starlette .applications import Starlette
18
+ from starlette .datastructures import State
18
19
from starlette .exceptions import ExceptionMiddleware , HTTPException
19
20
from starlette .middleware .errors import ServerErrorMiddleware
20
21
from starlette .requests import Request
@@ -42,6 +43,7 @@ def __init__(
42
43
) -> None :
43
44
self .default_response_class = default_response_class
44
45
self ._debug = debug
46
+ self .state = State ()
45
47
self .router : routing .APIRouter = routing .APIRouter (
46
48
routes , dependency_overrides_provider = self
47
49
)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ classifiers = [
19
19
" Topic :: Internet :: WWW/HTTP :: HTTP Servers" ,
20
20
]
21
21
requires = [
22
- " starlette >=0.11.1 ,<=0.12.8 " ,
22
+ " starlette >=0.12.9 ,<=0.12.9 " ,
23
23
" pydantic >=0.32.2,<=0.32.2"
24
24
]
25
25
description-file = " README.md"
You can’t perform that action at this time.
0 commit comments