From 6ac7f20a21fd015363878d1055c86ec1e00c763e Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 24 Sep 2026 23:24:19 +0000 Subject: [PATCH] refactor(proxy): collapse the alert recipient isinstance checks into one call Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/auth/auth_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index bea7d89977e..7a678973eaa 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -5606,7 +5606,7 @@ def _is_valid_alert_threshold_pct(pct: str) -> bool: def _alert_recipients(raw: object) -> Sequence[str] | None: - if isinstance(raw, str) or isinstance(raw, Sequence): + if isinstance(raw, (str, Sequence)): return _parse_email_list(raw) return None