mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
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:
parent
25ff25d1ef
commit
9c3de58182
1 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue