From f976a01fcef5b451e725febe4ff1ddaca2ef1f89 Mon Sep 17 00:00:00 2001 From: Ryan Crabbe Date: Sat, 21 Feb 2026 11:34:30 -0800 Subject: [PATCH] fix: use precise tuple[str, str] type annotation for _PRESERVED_NONE_FIELDS --- litellm/proxy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 0ad081a107..9243fb7f58 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -4565,7 +4565,7 @@ def validate_model_access( ) -_PRESERVED_NONE_FIELDS: List[tuple] = [ +_PRESERVED_NONE_FIELDS: List[tuple[str, str]] = [ ("message", "content"), # null when tool_calls present (issue #6677) ("message", "role"), # always required by OpenAI spec ("delta", "content"), # null in streaming chunks