Skip to content

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]

fix: fix python38 linting error

Krrish Dholakia69e28b92c6d6
diff --git a/litellm/llms/anthropic/common_utils.py b/litellm/llms/anthropic/common_utils.py
index 967d29f4540..9eae6734ff7 100644
--- a/litellm/llms/anthropic/common_utils.py
+++ b/litellm/llms/anthropic/common_utils.py
@@ -2,7 +2,7 @@
This file contains common utils for anthropic calls.
"""
-from typing import Optional, Union
+from typing import List, Optional, Union
import httpx
@@ -41,7 +41,7 @@ class AnthropicModelInfo(BaseLLMModelInfo):
def get_models(
self, api_key: Optional[str] = None, api_base: Optional[str] = None
- ) -> list[str]:
+ ) -> List[str]:
api_base = AnthropicModelInfo.get_api_base(api_base)
api_key = AnthropicModelInfo.get_api_key(api_key)
if api_base is None or api_key is None: