From 2b94847364aa284c54ea52ca76721eb330a2c227 Mon Sep 17 00:00:00 2001 From: Napuh Date: Sun, 26 Jul 2026 13:07:49 +0200 Subject: [PATCH] style: use builtin generic annotation --- .../experimental_pass_through/adapters/streaming_iterator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/anthropic/experimental_pass_through/adapters/streaming_iterator.py b/litellm/llms/anthropic/experimental_pass_through/adapters/streaming_iterator.py index 2103bac5ebf..f46f9a61744 100644 --- a/litellm/llms/anthropic/experimental_pass_through/adapters/streaming_iterator.py +++ b/litellm/llms/anthropic/experimental_pass_through/adapters/streaming_iterator.py @@ -115,7 +115,7 @@ class _CombinedChunkSplitter: chunk._hidden_params = {key: value for key, value in hidden_params.items() if key != "usage"} @staticmethod - def _split_mixed_reasoning_and_text(chunk: Any) -> List[Any]: + def _split_mixed_reasoning_and_text(chunk: Any) -> list[Any]: if not _CombinedChunkSplitter._has_mixed_reasoning_and_text(chunk): return [chunk]