From cb05200a5a523cb9a0bd20119321d76f5b500d82 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 6 Nov 2026 14:23:12 -0800 Subject: [PATCH] style: clear the ruff reds lts/1.108.x already has Drops a second ScriptedBedrockInvoke class (F811) whose wider first definition already covers it, and a repeated supports_bedrock_native_structured_output key (F601) with the same value, both from merging two earlier backports. No behavior change. --- .../test_anthropic_claude3_transformation.py | 11 ----------- tests/unit/test_utils.py | 1 - 2 files changed, 12 deletions(-) diff --git a/tests/unit/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py b/tests/unit/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py index 56272436857..fe2b6f69e7d 100644 --- a/tests/unit/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py +++ b/tests/unit/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py @@ -4171,17 +4171,6 @@ _THINKING_HISTORY: Final = ( ) -@dataclass(slots=True) -class ScriptedBedrockInvoke: - replies: tuple[tuple[int, Mapping[str, object]], ...] - bodies: tuple[dict[str, object], ...] = () - - def __call__(self, request: httpx.Request) -> httpx.Response: - self.bodies = (*self.bodies, REASONING_BODY_ADAPTER.validate_json(request.content)) - status_code, body = self.replies[len(self.bodies) - 1] - return httpx.Response(status_code, json=body) - - async def _send_bedrock_messages( model: str, model_info: Mapping[str, object] | None, diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 58ed951540e..a9e3aa7da5d 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1288,7 +1288,6 @@ def test_aaamodel_prices_and_context_window_json_is_valid(): "supports_native_streaming": {"type": "boolean"}, "supports_image_size": {"type": "boolean"}, "supports_native_structured_output": {"type": "boolean"}, - "supports_bedrock_native_structured_output": {"type": "boolean"}, "use_openai_responses_path": {"type": "boolean"}, "off_peak_pricing": { "type": "object",