Browse Source
⬆️ Upgrade Starlette supported version range to `>=0.40.0,<0.48.0` (#13884)
pull/13130/merge
Sebastián Ramírez
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
2 deletions
-
fastapi/routing.py
-
pyproject.toml
|
@ -9,6 +9,7 @@ from typing import ( |
|
|
Any, |
|
|
Any, |
|
|
AsyncIterator, |
|
|
AsyncIterator, |
|
|
Callable, |
|
|
Callable, |
|
|
|
|
|
Collection, |
|
|
Coroutine, |
|
|
Coroutine, |
|
|
Dict, |
|
|
Dict, |
|
|
List, |
|
|
List, |
|
@ -862,7 +863,7 @@ class APIRouter(routing.Router): |
|
|
def route( |
|
|
def route( |
|
|
self, |
|
|
self, |
|
|
path: str, |
|
|
path: str, |
|
|
methods: Optional[List[str]] = None, |
|
|
methods: Optional[Collection[str]] = None, |
|
|
name: Optional[str] = None, |
|
|
name: Optional[str] = None, |
|
|
include_in_schema: bool = True, |
|
|
include_in_schema: bool = True, |
|
|
) -> Callable[[DecoratedCallable], DecoratedCallable]: |
|
|
) -> Callable[[DecoratedCallable], DecoratedCallable]: |
|
|
|
@ -43,7 +43,7 @@ classifiers = [ |
|
|
"Topic :: Internet :: WWW/HTTP", |
|
|
"Topic :: Internet :: WWW/HTTP", |
|
|
] |
|
|
] |
|
|
dependencies = [ |
|
|
dependencies = [ |
|
|
"starlette>=0.40.0,<0.47.0", |
|
|
"starlette>=0.40.0,<0.48.0", |
|
|
"pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0", |
|
|
"pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0", |
|
|
"typing-extensions>=4.8.0", |
|
|
"typing-extensions>=4.8.0", |
|
|
] |
|
|
] |
|
|