From 685e72180cbb9e3df9b5b30463f177fd399d570a Mon Sep 17 00:00:00 2001 From: Shin Date: Wed, 11 Feb 2026 04:23:14 +0000 Subject: [PATCH] fix(ruff): remove duplicate RouteChecks import The import at the top level was unused because RouteChecks is imported locally inside each function that needs it (likely to avoid circular imports). This was causing F401 (unused import) and F811 (redefinition) ruff errors. --- litellm/proxy/policy_engine/policy_resolve_endpoints.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litellm/proxy/policy_engine/policy_resolve_endpoints.py b/litellm/proxy/policy_engine/policy_resolve_endpoints.py index a81d4405678..eb4d3fc5845 100644 --- a/litellm/proxy/policy_engine/policy_resolve_endpoints.py +++ b/litellm/proxy/policy_engine/policy_resolve_endpoints.py @@ -12,7 +12,6 @@ from fastapi import APIRouter, Depends, HTTPException, Query from litellm._logging import verbose_proxy_logger from litellm.constants import MAX_POLICY_ESTIMATE_IMPACT_ROWS from litellm.proxy._types import UserAPIKeyAuth -from litellm.proxy.auth.route_checks import RouteChecks from litellm.proxy.auth.user_api_key_auth import user_api_key_auth from litellm.proxy.policy_engine.attachment_registry import get_attachment_registry from litellm.proxy.policy_engine.policy_registry import get_policy_registry