From f73feba2794215a02ce156ebfaa9390b736f29ed Mon Sep 17 00:00:00 2001 From: Vineeth Sai Date: Thu, 27 Aug 2026 11:10:10 -0700 Subject: [PATCH] style(cloudflare): import Coroutine from collections.abc ruff's UP035 flags the typing re-export; the module's own base does the same. Signed-off-by: Vineeth Sai --- litellm/llms/cloudflare/chat/transformation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litellm/llms/cloudflare/chat/transformation.py b/litellm/llms/cloudflare/chat/transformation.py index 9ae97a9d667..d3ab0be3207 100644 --- a/litellm/llms/cloudflare/chat/transformation.py +++ b/litellm/llms/cloudflare/chat/transformation.py @@ -1,4 +1,5 @@ -from typing import Any, Coroutine, Final, Literal, overload +from collections.abc import Coroutine +from typing import Any, Final, Literal, overload import httpx @@ -99,7 +100,7 @@ class CloudflareChatConfig(OpenAIGPTConfig): @overload def _transform_messages( # mutable-ok: base signature - self, messages: list[AllMessageValues], model: str, is_async: Literal[False] = False # mutable-ok: base signature + self, messages: list[AllMessageValues], model: str, is_async: Literal[False] = False # mutable-ok: base sig ) -> list[AllMessageValues]: ... # mutable-ok: base signature def _transform_messages( # mutable-ok: base signature