From b503762289db16644e592114ba14dd6ca1dd3ac0 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Tue, 22 Sep 2026 19:03:04 -0700 Subject: [PATCH] test(bedrock): type the eventstream frame helper's payload as Mapping[str, object] --- .../test_anthropic_claude3_transformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_litellm/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py b/tests/test_litellm/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py index 2bc39840542..208ffaa0073 100644 --- a/tests/test_litellm/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py +++ b/tests/test_litellm/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py @@ -7,7 +7,7 @@ import struct import zlib from datetime import datetime from types import SimpleNamespace -from collections.abc import AsyncIterator +from collections.abc import AsyncIterator, Mapping from typing import Final from unittest.mock import Mock @@ -3402,7 +3402,7 @@ def test_bedrock_invoke_eager_input_streaming_beta_not_duplicated_with_client_he assert result["anthropic_beta"] == [FINE_GRAINED_TOOL_STREAMING_BETA] -def _bedrock_event_frame(payload: dict) -> bytes: +def _bedrock_event_frame(payload: Mapping[str, object]) -> bytes: def _header(name: str, value: str) -> bytes: return ( bytes([len(name)])