mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
fix(proxy): mark validation error TypedDict fields ReadOnly
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ca04b03c2c
commit
b0acda2825
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue