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

Loading…
Cancel
Save