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
test(proxy): import LoginThrottle under TYPE_CHECKING for the throttle helper annotation
yucheng65765d6550fe
diff --git a/tests/test_litellm/proxy/auth/test_login_utils.py b/tests/test_litellm/proxy/auth/test_login_utils.pyindex d6e0a489939..52ae3ca092b 100644--- a/tests/test_litellm/proxy/auth/test_login_utils.py+++ b/tests/test_litellm/proxy/auth/test_login_utils.py@@ -8,11 +8,14 @@ to login_utils.py for better reusability.import osfrom collections.abc import Mappingfrom contextlib import ExitStack-from typing import Final+from typing import TYPE_CHECKING, Finalfrom unittest.mock import AsyncMock, MagicMock, patchimport pytest+if TYPE_CHECKING:+ from litellm.proxy.auth.login_throttle import LoginThrottle+def _unlimited_throttle():"""A throttle wired to real in-memory stores with limits no test can reach."""