mirror of https://github.com/tiangolo/fastapi.git
⬆️ Upgrade Starlette version to `0.24.0` and refactor internals for compatibility (#5985)
This commit is contained in:
parent
6e94ec2bf0
commit
d566c6cbca
|
|
@ -87,7 +87,7 @@ class FastAPI(Starlette):
|
||||||
),
|
),
|
||||||
**extra: Any,
|
**extra: Any,
|
||||||
) -> None:
|
) -> None:
|
||||||
self._debug: bool = debug
|
self.debug = debug
|
||||||
self.title = title
|
self.title = title
|
||||||
self.description = description
|
self.description = description
|
||||||
self.version = version
|
self.version = version
|
||||||
|
|
@ -144,7 +144,7 @@ class FastAPI(Starlette):
|
||||||
self.user_middleware: List[Middleware] = (
|
self.user_middleware: List[Middleware] = (
|
||||||
[] if middleware is None else list(middleware)
|
[] if middleware is None else list(middleware)
|
||||||
)
|
)
|
||||||
self.middleware_stack: ASGIApp = self.build_middleware_stack()
|
self.middleware_stack: Union[ASGIApp, None] = None
|
||||||
self.setup()
|
self.setup()
|
||||||
|
|
||||||
def build_middleware_stack(self) -> ASGIApp:
|
def build_middleware_stack(self) -> ASGIApp:
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ classifiers = [
|
||||||
"Topic :: Internet :: WWW/HTTP",
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"starlette>=0.22.0,<0.24.0",
|
"starlette>=0.24.0,<0.25.0",
|
||||||
"pydantic >=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0",
|
"pydantic >=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0",
|
||||||
]
|
]
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue