mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-21 00:24:55 +00:00
fix(lint): remove unused imports in semantic_guard and policy_endpoints
- Remove unused RouteChoice import from semantic_guard.py TYPE_CHECKING block (only referenced in docstring, never used as a type annotation) - Remove redundant explicit router import from policy_endpoints/__init__.py (already re-exported by the preceding import * on the same line) Fixes Ruff F401 errors caught in CI linting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
0f2516e9cd
commit
dba60cac22
@@ -26,7 +26,6 @@ except ImportError:
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from semantic_router.routers import SemanticRouter
|
||||
from semantic_router.schema import RouteChoice
|
||||
|
||||
from litellm.caching import DualCache
|
||||
from litellm.proxy.auth.user_api_key_auth import UserAPIKeyAuth
|
||||
|
||||
@@ -8,6 +8,3 @@ are imported directly into this namespace.
|
||||
"""
|
||||
|
||||
from litellm.proxy.management_endpoints.policy_endpoints.endpoints import * # noqa: F401, F403
|
||||
from litellm.proxy.management_endpoints.policy_endpoints.endpoints import (
|
||||
router,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user