From 3e65e9ef0ef0048880140e1f38cecfd082065147 Mon Sep 17 00:00:00 2001 From: Emerson Gomes Date: Sat, 26 Sep 2026 05:15:27 -0500 Subject: [PATCH] chore(vertex-ai): remove obsolete lint suppressions --- .../vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py | 2 +- litellm/llms/vertex_ai/text_to_speech/transformation.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py index 0383ed53337..fa98f8f190d 100644 --- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py +++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py @@ -1132,7 +1132,7 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig): return normalize_gemini_speech_config(value) speech_config_without_language: Final[ # mutable-ok: provider request serialization requires a concrete dict - dict[str, object] # mutable-ok: provider request serialization requires a concrete dict + dict[str, object] ] = ( { # mutable-ok: provider request serialization requires a concrete dict "voiceConfig": { # mutable-ok: nested provider payload is serialized as a dict diff --git a/litellm/llms/vertex_ai/text_to_speech/transformation.py b/litellm/llms/vertex_ai/text_to_speech/transformation.py index f92e67792e0..dce7347d69b 100644 --- a/litellm/llms/vertex_ai/text_to_speech/transformation.py +++ b/litellm/llms/vertex_ai/text_to_speech/transformation.py @@ -218,9 +218,7 @@ class VertexAITextToSpeechConfig(BaseTextToSpeechConfig, VertexBase): def _extract_gemini_tts_speaker_configs( self, voice: Mapping[str, object], - ) -> list[ - VertexTextToSpeechSpeakerVoiceConfig - ]: # mutable-ok: provider request serialization requires a concrete list + ) -> list[VertexTextToSpeechSpeakerVoiceConfig]: speech_config: Final = self._get_dict_value(voice, "speechConfig", "speech_config") or voice multi_speaker_config: Final = self._get_dict_value( speech_config,