]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
⬆️ Upgrade Starlette supported version range to `>=0.40.0,<0.48.0` (#13884)
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 11 Jul 2025 16:15:27 +0000 (18:15 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Jul 2025 16:15:27 +0000 (18:15 +0200)
fastapi/routing.py
pyproject.toml

index bf61a65c1337e657ad6ab5b32962fb41789f7d05..54c75a02737d0328eb9445b2fe502eb0d3b1e2bf 100644 (file)
@@ -9,6 +9,7 @@ from typing import (
     Any,
     AsyncIterator,
     Callable,
+    Collection,
     Coroutine,
     Dict,
     List,
@@ -862,7 +863,7 @@ class APIRouter(routing.Router):
     def route(
         self,
         path: str,
-        methods: Optional[List[str]] = None,
+        methods: Optional[Collection[str]] = None,
         name: Optional[str] = None,
         include_in_schema: bool = True,
     ) -> Callable[[DecoratedCallable], DecoratedCallable]:
index a3fc54e3d8ad9a309504c4deeffcb511e45162c3..7709451ffccf9023151cf399c8796a85ec6adb2b 100644 (file)
@@ -43,7 +43,7 @@ classifiers = [
     "Topic :: Internet :: WWW/HTTP",
 ]
 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",
     "typing-extensions>=4.8.0",
 ]