Browse Source

🎨 Auto format

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

6
fastapi/applications.py

@ -1008,8 +1008,10 @@ class FastAPI(Starlette):
)
# Starlette still has incorrect type specification for the handlers
self.exception_handlers.setdefault(WebSocketRequestValidationError, websocket_request_validation_exception_handler) # type: ignore
self.exception_handlers.setdefault(
WebSocketRequestValidationError,
websocket_request_validation_exception_handler,
) # type: ignore
self.user_middleware: list[Middleware] = (
[] if middleware is None else list(middleware)

Loading…
Cancel
Save