]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:arrow_up: Upgrade Starlette to 0.12.9 and add State (#593)
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 5 Oct 2019 18:17:15 +0000 (13:17 -0500)
committerGitHub <noreply@github.com>
Sat, 5 Oct 2019 18:17:15 +0000 (13:17 -0500)
Pipfile
fastapi/applications.py
pyproject.toml

diff --git a/Pipfile b/Pipfile
index f59b751a907d8ac2b3bcd34472a1127ccd17cfc2..9b8d31bea80d5900373e543938e462532f40c3e6 100644 (file)
--- a/Pipfile
+++ b/Pipfile
@@ -25,7 +25,7 @@ sqlalchemy = "*"
 uvicorn = "*"
 
 [packages]
-starlette = "==0.12.8"
+starlette = "==0.12.9"
 pydantic = "==0.32.2"
 databases = {extras = ["sqlite"],version = "*"}
 hypercorn = "*"
index 143c5c64b3a6ab0c281fdb9a70c760b928636491..811b90d4ad83e5e246aac3604616dc7299aea154 100644 (file)
@@ -15,6 +15,7 @@ from fastapi.openapi.docs import (
 from fastapi.openapi.utils import get_openapi
 from fastapi.params import Depends
 from starlette.applications import Starlette
+from starlette.datastructures import State
 from starlette.exceptions import ExceptionMiddleware, HTTPException
 from starlette.middleware.errors import ServerErrorMiddleware
 from starlette.requests import Request
@@ -42,6 +43,7 @@ class FastAPI(Starlette):
     ) -> None:
         self.default_response_class = default_response_class
         self._debug = debug
+        self.state = State()
         self.router: routing.APIRouter = routing.APIRouter(
             routes, dependency_overrides_provider=self
         )
index 06ca453d82f7d465b3c567dd7641bc069a797285..e47cb965a4f716d952a4e85cce5bcd273cea0197 100644 (file)
@@ -19,7 +19,7 @@ classifiers = [
     "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
 ]
 requires = [
-    "starlette >=0.11.1,<=0.12.8",
+    "starlette >=0.12.9,<=0.12.9",
     "pydantic >=0.32.2,<=0.32.2"
 ]
 description-file = "README.md"