From 9545b109b18d2e19e8812e514f7ddda486c2ca53 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Thu, 30 Jul 2026 21:58:23 -0700 Subject: [PATCH] fix(responses): suppress LIT002 on error-code map frozen by MappingProxyType --- litellm/responses/streaming_iterator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/responses/streaming_iterator.py b/litellm/responses/streaming_iterator.py index e85a758269f..dab666ff0d9 100644 --- a/litellm/responses/streaming_iterator.py +++ b/litellm/responses/streaming_iterator.py @@ -50,7 +50,7 @@ def _log_background_task_failure(task: "asyncio.Task[Any]", *, task_name: str) - _ERROR_CODE_HTTP_STATUS: Mapping[str, int] = MappingProxyType( - { + { # mutable-ok: immediately frozen by MappingProxyType "server_error": 500, "rate_limit_exceeded": 429, "insufficient_quota": 429,