Browse Source

feat: issue-2008 fix linter

pull/10861/head
Volodymyr Kochetkov 1 year ago
parent
commit
45acd328f2
  1. 1
      fastapi/routing.py

1
fastapi/routing.py

@ -931,6 +931,7 @@ class APIRouter(routing.Router):
auto_options_index: Optional[int] = None
allowed_methods: Set[str] = set()
for index, route in enumerate(self.routes):
if isinstance(route, APIRoute):
if route.path == new_route.path:
if hasattr(route, "is_auto_options") and route.is_auto_options:
auto_options_index = index

Loading…
Cancel
Save