Sofie Van Landeghem
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
fastapi/applications.py
|
|
|
@ -1006,8 +1006,8 @@ class FastAPI(Starlette): |
|
|
|
# Starlette still has incorrect type specification for the handlers |
|
|
|
self.exception_handlers.setdefault( |
|
|
|
WebSocketRequestValidationError, |
|
|
|
websocket_request_validation_exception_handler, # type: ignore # ty: ignore[unused-ignore-comment] |
|
|
|
) # ty: ignore |
|
|
|
websocket_request_validation_exception_handler, # type: ignore[arg-type] # ty: ignore[unused-ignore-comment] |
|
|
|
) # ty: ignore[no-matching-overload] |
|
|
|
|
|
|
|
self.user_middleware: list[Middleware] = ( |
|
|
|
[] if middleware is None else list(middleware) |
|
|
|
|