From 32becd849877cb144dcb8c6bf6db9319bc4357fa Mon Sep 17 00:00:00 2001 From: hx <1367557521@qq.com> Date: Tue, 6 Oct 2026 00:44:25 +0800 Subject: [PATCH] style: format xai get_error_class signatures for ruff format --- litellm/llms/xai/chat/transformation.py | 5 ++++- litellm/llms/xai/responses/transformation.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/litellm/llms/xai/chat/transformation.py b/litellm/llms/xai/chat/transformation.py index 3ae42116a57..73e3244a0e0 100644 --- a/litellm/llms/xai/chat/transformation.py +++ b/litellm/llms/xai/chat/transformation.py @@ -129,7 +129,10 @@ class XAIChatConfig(OpenAIGPTConfig): ) def get_error_class( - self, error_message: str, status_code: int, headers: dict | httpx.Headers # mutable-ok: mirrors the base class signature + self, + error_message: str, + status_code: int, + headers: dict | httpx.Headers, # mutable-ok: mirrors the base class signature ) -> BaseLLMException: return super().get_error_class( error_message=error_message, diff --git a/litellm/llms/xai/responses/transformation.py b/litellm/llms/xai/responses/transformation.py index 90b332992a3..49dc7960c93 100644 --- a/litellm/llms/xai/responses/transformation.py +++ b/litellm/llms/xai/responses/transformation.py @@ -258,7 +258,10 @@ class XAIResponsesAPIConfig(OpenAIResponsesAPIConfig): return join_api_base(api_base, "responses") def get_error_class( - self, error_message: str, status_code: int, headers: dict | httpx.Headers # mutable-ok: mirrors the base class signature + self, + error_message: str, + status_code: int, + headers: dict | httpx.Headers, # mutable-ok: mirrors the base class signature ) -> BaseLLMException: return super().get_error_class( error_message=error_message,