From e5a7405c1066e51cf89f6e87197941c1970d6b8f Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Fri, 2 Jan 2026 13:16:52 -0800 Subject: [PATCH] fix: remove duplicate get_llm_provider type stub to resolve mypy error - Remove get_llm_provider from TYPE_CHECKING Protocol class - Function is already imported from main.py via 'from .main import *' - Fixes mypy error: Name 'get_llm_provider' already defined (possibly by an import) --- litellm/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litellm/__init__.py b/litellm/__init__.py index 4f912d16fc9..23eff758e7b 100644 --- a/litellm/__init__.py +++ b/litellm/__init__.py @@ -1507,7 +1507,6 @@ if TYPE_CHECKING: get_first_chars_messages: Callable[..., str] get_provider_fields: Callable[..., List] get_valid_models: Callable[..., list] - get_llm_provider: Callable[..., Tuple[str, str, Optional[str], Optional[str]]] # Response types - truly lazy loaded only (not in main.py or elsewhere) ModelResponseListIterator: Type[Any]