Browse Source

⬆️ Upgrade Starlette version to `0.24.0` and refactor internals for compatibility (#5985)

pull/5990/head
Sebastián Ramírez 2 years ago
committed by GitHub
parent
commit
d566c6cbca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      fastapi/applications.py
  2. 2
      pyproject.toml

4
fastapi/applications.py

@ -87,7 +87,7 @@ class FastAPI(Starlette):
),
**extra: Any,
) -> None:
self._debug: bool = debug
self.debug = debug
self.title = title
self.description = description
self.version = version
@ -144,7 +144,7 @@ class FastAPI(Starlette):
self.user_middleware: 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()
def build_middleware_stack(self) -> ASGIApp:

2
pyproject.toml

@ -39,7 +39,7 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP",
]
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",
]
dynamic = ["version"]

Loading…
Cancel
Save