refactor(containers): simplify BaseContainerConfig import per review

Move BaseContainerConfig import outside TYPE_CHECKING block since it's
needed at runtime for class inheritance, not just for type hints.
This commit is contained in:
Chesars 2026-01-30 14:34:10 -03:00
parent 25ff25d1ef
commit 9c3de58182

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
from ...base_llm.containers.transformation import BaseContainerConfig
BaseLLMException = Any