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 mypy issues
Sameer Kankutefc873d8867ba
diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.pyindex 7f38a4c0341..9dadffca351 100644--- a/litellm/proxy/management_endpoints/key_management_endpoints.py+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py@@ -37,13 +37,6 @@ from litellm.proxy._experimental.mcp_server.db import ()from litellm.proxy._types import *from litellm.proxy._types import LiteLLM_VerificationToken-from litellm.types.proxy.management_endpoints.key_management_endpoints import (- BulkUpdateKeyRequest,- BulkUpdateKeyRequestItem,- BulkUpdateKeyResponse,- FailedKeyUpdate,- SuccessfulKeyUpdate,-)from litellm.proxy.auth.auth_checks import (_cache_key_object,_delete_cache_key_object,@@ -82,6 +75,13 @@ from litellm.proxy.utils import ()from litellm.router import Routerfrom litellm.secret_managers.main import get_secret+from litellm.types.proxy.management_endpoints.key_management_endpoints import (+ BulkUpdateKeyRequest,+ BulkUpdateKeyRequestItem,+ BulkUpdateKeyResponse,+ FailedKeyUpdate,+ SuccessfulKeyUpdate,+)from litellm.types.router import Deploymentfrom litellm.types.utils import (BudgetConfig,diff --git a/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.pyindex 809573cc63a..5720ff948a6 100644--- a/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py@@ -817,12 +817,12 @@ async def test_key_info_returns_object_permission(monkeypatch):related object_permission object."""from unittest.mock import AsyncMock, MagicMock-+import pytest-+from litellm.proxy._types import LiteLLM_VerificationTokenfrom litellm.proxy.management_endpoints.key_management_endpoints import info_key_fn-+# Mock prisma clientmock_prisma_client = AsyncMock()monkeypatch.setattr("litellm.proxy.proxy_server.prisma_client", mock_prisma_client)