The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: remove unused custom_recognizers variable to pass linting
Arshdeep Singh39683cc3d871
diff --git a/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_presidio_union_fix.py b/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_presidio_union_fix.pyindex a062bc1a896..2de324c7e50 100644--- a/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_presidio_union_fix.py+++ b/tests/test_litellm/proxy/guardrails/guardrail_hooks/test_presidio_union_fix.py@@ -18,28 +18,6 @@ class PiiAction(str, Enum):def test_presidio_union_type_fix():"""Test that Union[PiiEntityType, str] allows both enum and string entity types"""- # Custom recognizers for EMPLOYEE_ID and CUSTOMER_ID- custom_recognizers = [- {- "name": "Employee ID Recognizer",- "supported_language": "en",- "patterns": [- {"name": "employee id", "regex": "EMP-[0-9]{6}", "score": 0.9}- ],- "context": ["employee", "id"],- "supported_entity": "EMPLOYEE_ID",- },- {- "name": "Customer ID Recognizer",- "supported_language": "en",- "patterns": [- {"name": "customer id", "regex": "CUST-[0-9]{8}", "score": 0.9}- ],- "context": ["customer", "id"],- "supported_entity": "CUSTOMER_ID",- },- ]-# This is the core fix - mixed entity types in pii_entities_configpii_entities_config: Dict[Union[PiiEntityType, str], PiiAction] = {PiiEntityType.EMAIL_ADDRESS: PiiAction.MASK,@@ -55,7 +33,6 @@ def test_presidio_union_type_fix():assert "CUSTOMER_ID" in entities_listprint("✅ Union type fix verified: mixed entity types work correctly")- print("✅ Custom recognizers defined for EMPLOYEE_ID and CUSTOMER_ID")if __name__ == "__main__":