From bf0be8b237e922f539fb008b444768a94a1376cd Mon Sep 17 00:00:00 2001 From: sun04222 <3242054475@qq.com> Date: Sat, 24 Oct 2026 10:21:15 +0800 Subject: [PATCH] fix(generic_api): ruff-format the restored failed_events annotation The annotation restore left the line in a form `ruff format --check` wants to reformat (CI exit 123). Applying ruff format; no semantic change. --- litellm/integrations/generic_api/generic_api_callback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/integrations/generic_api/generic_api_callback.py b/litellm/integrations/generic_api/generic_api_callback.py index 4e2df7dc014..cbdc3ecd205 100644 --- a/litellm/integrations/generic_api/generic_api_callback.py +++ b/litellm/integrations/generic_api/generic_api_callback.py @@ -376,7 +376,9 @@ class GenericAPILogger(CustomBatchLogger): batch: Final = tuple(self.log_queue) if not batch: return - failed_events: Final[list[Mapping[str, object] | StandardLoggingPayload]] = [] # mutable-ok: filled while the send runs and drained into the queue in finally + failed_events: Final[ + list[Mapping[str, object] | StandardLoggingPayload] + ] = [] # mutable-ok: filled while the send runs and drained into the queue in finally try: verbose_logger.debug( "Generic API Logger - about to flush %s events in '%s' format", len(batch), self.log_format