Browse Source

🚨 Update type annotations

pull/13884/head
Sebastián Ramírez 4 weeks ago
parent
commit
7a042571c1
  1. 3
      fastapi/routing.py

3
fastapi/routing.py

@ -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]:

Loading…
Cancel
Save