From b0acda28256d2a0b244b2e5518aad4185b338b45 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 14 Sep 2026 23:09:04 +0000 Subject: [PATCH] fix(proxy): mark validation error TypedDict fields ReadOnly Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/proxy_server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 88844c04e74..04145eb68ef 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -1788,9 +1788,9 @@ class _ExceptionRow(TypedDict, total=False): class _ValidationErrorDetail(TypedDict): - type: str - loc: tuple[int | str, ...] - msg: str + type: ReadOnly[str] + loc: ReadOnly[tuple[int | str, ...]] + msg: ReadOnly[str] def _is_length_error_of_rejected_items(error: _ValidationErrorDetail, errors: Sequence[_ValidationErrorDetail]) -> bool: