From d8d088b6699fe516e62cf0b48189d972b5ed7bc0 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 21 Feb 2026 10:05:43 -0800 Subject: [PATCH] Apply suggestion from @greptile-apps[bot] Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../litellm_content_filter/competitor_intent/airline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/airline.py b/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/airline.py index 7c0d76a0e99..583814de1ef 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/airline.py +++ b/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/airline.py @@ -135,7 +135,7 @@ def _load_competitors_excluding_brand(brand_self: List[str]) -> List[str]: continue match_str = entry.get("match") or "" variants = [v.strip().lower() for v in match_str.split("|") if v.strip()] - words_in_match: set[str] = set() + words_in_match: Set[str] = set() for v in variants: words_in_match.update(v.split()) if brand_set & words_in_match or any(v in brand_set for v in variants):