From c5fe741d88b0f7c118a956802e22c4d4a181a7ee Mon Sep 17 00:00:00 2001 From: nuernber Date: Fri, 11 Sep 2026 14:32:55 -0700 Subject: [PATCH] fix lint formating errors --- litellm/router_utils/prompt_caching_cache.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/litellm/router_utils/prompt_caching_cache.py b/litellm/router_utils/prompt_caching_cache.py index ef55d4e2735..ffe3a13becd 100644 --- a/litellm/router_utils/prompt_caching_cache.py +++ b/litellm/router_utils/prompt_caching_cache.py @@ -173,7 +173,9 @@ class PromptCachingCache: tools: list[ChatCompletionToolParam] | None = None, ) -> int: cacheable_prefix: Final = ( - PromptCachingCache.extract_cacheable_prefix(messages) if messages is not None else [] # mutable-ok: TTL helper requires a concrete list + PromptCachingCache.extract_cacheable_prefix(messages) + if messages is not None + else [] # mutable-ok: TTL helper requires a concrete list ) return PromptCachingCache.get_prompt_caching_ttl_from_prefix(cacheable_prefix, tools) @@ -182,7 +184,9 @@ class PromptCachingCache: cacheable_prefix: list[AllMessageValues], tools: list[ChatCompletionToolParam] | None, ) -> int: - cacheable_tools: Final = PromptCachingCache.extract_cacheable_tools(tools or []) # mutable-ok: tool API requires a concrete list + cacheable_tools: Final = PromptCachingCache.extract_cacheable_tools( + tools or [] # mutable-ok: tool API requires a concrete list + ) cache_control_values: Final = tuple( cache_control for message in cacheable_prefix