From 6b5d287f2a2ea461ddd23ce9762c806eabcf4c1e Mon Sep 17 00:00:00 2001 From: wadrzl55333 Date: Fri, 28 Aug 2026 21:42:59 +0800 Subject: [PATCH] style(proxy): suppress LIT002 for event-type literals in config registration Passing ["success"]/["failure"] literals constructs a mutable list, which the type-discipline budget counts; mark them mutable-ok mirroring the DB-config call site. --- litellm/proxy/proxy_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index c2e506ec00b..56b9766a6d3 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -5123,7 +5123,7 @@ class ProxyConfig: else: self._add_callback_from_db_to_in_memory_litellm_callbacks( callback=callback, - event_types=["success"], + event_types=["success"], # mutable-ok: mirrors the DB-config call site existing_callbacks=litellm.success_callback, ) if "prometheus" in callback: @@ -5154,7 +5154,7 @@ class ProxyConfig: else: self._add_callback_from_db_to_in_memory_litellm_callbacks( callback=callback, - event_types=["failure"], + event_types=["failure"], # mutable-ok: mirrors the DB-config call site existing_callbacks=litellm.failure_callback, ) print( # noqa: T201