From 6caedfd2a5e5a9eac5a44bf8d50ed2b39ec9dd5c Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Sat, 14 Feb 2026 14:32:32 -0300 Subject: [PATCH] fix: remove unused variable original_guardrails in pipeline_executor Remove unused local variable 'original_guardrails' that was assigned but never used in the _execute_guardrail_step method. Fixes Ruff F841 linting error. Co-Authored-By: Claude Sonnet 4.5 --- litellm/proxy/policy_engine/pipeline_executor.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litellm/proxy/policy_engine/pipeline_executor.py b/litellm/proxy/policy_engine/pipeline_executor.py index 56f00c11be..c1e2d76e7c 100644 --- a/litellm/proxy/policy_engine/pipeline_executor.py +++ b/litellm/proxy/policy_engine/pipeline_executor.py @@ -154,7 +154,6 @@ class PipelineExecutor: # Inject guardrail name into metadata so should_run_guardrail() allows it if "metadata" not in data: data["metadata"] = {} - original_guardrails = data["metadata"].get("guardrails") data["metadata"]["guardrails"] = [step.guardrail] # Use unified_guardrail path if callback implements apply_guardrail