From 6e0077693ad5019a011ccaabb999d4e9fb7d6d3b Mon Sep 17 00:00:00 2001 From: Daniel Yudelevich <4537920+yudelevi@users.noreply.github.com> Date: Fri, 26 Jun 2026 12:12:26 -0700 Subject: [PATCH] style(deepseek): use PEP 585 builtins in downgrade signature Satisfy the ruff strict-rule budget gate (UP006): use list/tuple instead of typing.List/Tuple in the new _downgrade_json_schema_to_json_object signature, which had pushed the repo's UP006 total over its ceiling. --- litellm/llms/deepseek/chat/transformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/deepseek/chat/transformation.py b/litellm/llms/deepseek/chat/transformation.py index 045a44822f3..ae8d33eeb5e 100644 --- a/litellm/llms/deepseek/chat/transformation.py +++ b/litellm/llms/deepseek/chat/transformation.py @@ -139,9 +139,9 @@ class DeepSeekChatConfig(OpenAIGPTConfig): def _downgrade_json_schema_to_json_object( self, model: str, - messages: List[AllMessageValues], + messages: list[AllMessageValues], optional_params: dict, - ) -> Tuple[List[AllMessageValues], dict]: + ) -> tuple[list[AllMessageValues], dict]: """ DeepSeek's /chat/completions rejects `response_format={"type": "json_schema"}` with "This response_format type is unavailable now" — no DeepSeek model