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.
This commit is contained in:
wadrzl55333 2026-08-28 21:42:59 +08:00
parent d9da2db043
commit 6b5d287f2a

View file

@ -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