From 466305d294b910ce290ad161688fa33f2b53bd18 Mon Sep 17 00:00:00 2001 From: moe-berri Date: Thu, 5 Nov 2026 15:46:00 +0800 Subject: [PATCH] fix: pass standalone issue API lint checks --- litellm/proxy/proxy_server.py | 2 +- litellm/repositories/usage_alerts.py | 4 ---- litellm/types/proxy/usage_alert_defaults.py | 3 ++- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index ad8a1bc67c0..4d5f8439f37 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -424,11 +424,11 @@ from litellm.messages.dispatch import messages_target from litellm.proxy._lazy_features import attach_lazy_features, reserve_lazy_slot from litellm.proxy._types import * from litellm.proxy.agent_endpoints.auth.agent_access_groups import CeilingResolver, resolve_agent_access_group_ceiling +from litellm.proxy.alerting_endpoints.issues import router as issues_router from litellm.proxy.alerting_endpoints.model_deprecation_alerts import ( router as model_deprecation_alerts_router, ) from litellm.proxy.alerting_endpoints.usage_alerts import router as usage_alerts_router -from litellm.proxy.alerting_endpoints.issues import router as issues_router from litellm.proxy.analytics_endpoints.analytics_endpoints import ( router as analytics_router, ) diff --git a/litellm/repositories/usage_alerts.py b/litellm/repositories/usage_alerts.py index 25d7a89d077..3ecfe60d679 100644 --- a/litellm/repositories/usage_alerts.py +++ b/litellm/repositories/usage_alerts.py @@ -92,10 +92,6 @@ class _ModelIdentity(BaseModel, frozen=True): model: str -class _Identifier(BaseModel, frozen=True): - id: str - - class _Pending(_Record, frozen=True): rule: Mapping[str, object] notified_channels: tuple[UsageAlertChannel, ...] diff --git a/litellm/types/proxy/usage_alert_defaults.py b/litellm/types/proxy/usage_alert_defaults.py index 7b54ac3eb45..887932a5194 100644 --- a/litellm/types/proxy/usage_alert_defaults.py +++ b/litellm/types/proxy/usage_alert_defaults.py @@ -67,7 +67,8 @@ def default_usage_rules( min_history_days=policy.min_history_days, notification_channels=( () - if legacy_user_spend_alerts and (scope, policy.metric, policy.direction) == ("user", "spend", "increase") + if legacy_user_spend_alerts + and (scope, policy.metric, policy.direction) == ("user", "spend", "increase") else channels ), )