Browse Source

🎨 Auto format

pull/15091/head
pre-commit-ci-lite[bot] 4 months ago
committed by GitHub
parent
commit
5bd8512534
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      fastapi/applications.py

6
fastapi/applications.py

@ -1,6 +1,6 @@
from collections.abc import Awaitable, Callable, Coroutine, Sequence from collections.abc import Awaitable, Callable, Coroutine, Sequence
from enum import Enum from enum import Enum
from typing import Annotated, Any, TypeVar, cast from typing import Annotated, Any, TypeVar
from annotated_doc import Doc from annotated_doc import Doc
from fastapi import routing from fastapi import routing
@ -1033,7 +1033,9 @@ class FastAPI(Starlette):
+ self.user_middleware + self.user_middleware
+ [ + [
Middleware( Middleware(
ExceptionMiddleware, handlers=exception_handlers, debug=debug # type: ignore[invalid-argument-type] ExceptionMiddleware,
handlers=exception_handlers,
debug=debug, # type: ignore[invalid-argument-type]
), ),
# Add FastAPI-specific AsyncExitStackMiddleware for closing files. # Add FastAPI-specific AsyncExitStackMiddleware for closing files.
# Before this was also used for closing dependencies with yield but # Before this was also used for closing dependencies with yield but

Loading…
Cancel
Save