Merge pull request #19786 from Chesars/fix/python310-any-subclass-error

fix(containers): Fix Python 3.10 compatibility for OpenAIContainerConfig
This commit is contained in:
Cesar Garcia 2026-02-27 18:14:47 -03:00 committed by GitHub
commit c5ddbb9660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,20 +16,17 @@ from litellm.types.containers.main import (
)
from litellm.types.router import GenericLiteLLMParams
from ...base_llm.containers.transformation import BaseContainerConfig
if TYPE_CHECKING:
from litellm.litellm_core_utils.litellm_logging import Logging as _LiteLLMLoggingObj
from ...base_llm.chat.transformation import BaseLLMException as _BaseLLMException
from ...base_llm.containers.transformation import (
BaseContainerConfig as _BaseContainerConfig,
)
LiteLLMLoggingObj = _LiteLLMLoggingObj
BaseContainerConfig = _BaseContainerConfig
BaseLLMException = _BaseLLMException
else:
LiteLLMLoggingObj = Any
BaseContainerConfig = Any
BaseLLMException = Any