From 18dc38f9f67664bd726d9e91761ecc7add157f28 Mon Sep 17 00:00:00 2001 From: Tin Chi Lo Date: Thu, 30 Jul 2026 15:48:51 -0700 Subject: [PATCH] style(cache_warming): sort imports to satisfy the I001 ceiling after rebase --- .../complexity_router/cache_warming/capture.py | 10 +++++----- .../complexity_router/cache_warming/types.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/litellm/router_strategy/complexity_router/cache_warming/capture.py b/litellm/router_strategy/complexity_router/cache_warming/capture.py index 35088409338..1ee35de3758 100644 --- a/litellm/router_strategy/complexity_router/cache_warming/capture.py +++ b/litellm/router_strategy/complexity_router/cache_warming/capture.py @@ -6,6 +6,11 @@ from typing import TYPE_CHECKING, Literal from litellm._logging import verbose_router_logger from litellm.constants import DEFAULT_CHARS_PER_TOKEN +from litellm.litellm_core_utils.core_helpers import ( + get_caller_scope, + get_request_metadata_field, + iter_request_metadata_dicts, +) from litellm.router_strategy.complexity_router.cache_warming.eligibility import ( min_prompt_cache_tokens_for_warm_set, resolve_warm_models, @@ -17,11 +22,6 @@ from litellm.router_strategy.complexity_router.cache_warming.types import ( CacheWarmingPayload, compress_payload, ) -from litellm.litellm_core_utils.core_helpers import ( - get_caller_scope, - get_request_metadata_field, - iter_request_metadata_dicts, -) if TYPE_CHECKING: from litellm.router_strategy.complexity_router.complexity_router import ComplexityRouter diff --git a/litellm/router_strategy/complexity_router/cache_warming/types.py b/litellm/router_strategy/complexity_router/cache_warming/types.py index 74f8207534d..62966976f8b 100644 --- a/litellm/router_strategy/complexity_router/cache_warming/types.py +++ b/litellm/router_strategy/complexity_router/cache_warming/types.py @@ -2,8 +2,8 @@ import base64 import hashlib import json import zlib -from functools import lru_cache from collections.abc import Mapping +from functools import lru_cache from typing import Literal from pydantic import BaseModel, ConfigDict