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(lazy_imports): type import_map as Mapping to stay under the LIT001 budget
Yuneng Jiangeee162b3178e
diff --git a/litellm/_lazy_imports.py b/litellm/_lazy_imports.pyindex 553aeb6680d..fe3c7c264ee 100644--- a/litellm/_lazy_imports.py+++ b/litellm/_lazy_imports.py@@ -229,7 +229,7 @@ def _module_attribute(module: ModuleType, attr_name: str) -> object:return attribute["value"]-def _generic_lazy_import(name: str, import_map: dict[str, tuple[str, str]], category: str) -> object:+def _generic_lazy_import(name: str, import_map: Mapping[str, tuple[str, str]], category: str) -> object:"""Generic function that handles lazy importing for most attributes.