From ba89abe4303c5d8c322f76c3f6e8e792cbbef49d Mon Sep 17 00:00:00 2001 From: yilololo Date: Tue, 8 Apr 2025 22:06:03 +0800 Subject: [PATCH 1/2] fix import --- pydantic_ai_slim/pydantic_ai/models/bedrock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pydantic_ai_slim/pydantic_ai/models/bedrock.py b/pydantic_ai_slim/pydantic_ai/models/bedrock.py index 46031fe1e1..c3fe77a792 100644 --- a/pydantic_ai_slim/pydantic_ai/models/bedrock.py +++ b/pydantic_ai_slim/pydantic_ai/models/bedrock.py @@ -10,7 +10,6 @@ import anyio import anyio.to_thread -from mypy_boto3_bedrock_runtime.type_defs import ConverseRequestTypeDef, SystemContentBlockTypeDef from typing_extensions import ParamSpec, assert_never from pydantic_ai import _utils, result @@ -43,12 +42,14 @@ from mypy_boto3_bedrock_runtime.type_defs import ( ContentBlockOutputTypeDef, ContentBlockUnionTypeDef, + ConverseRequestTypeDef, ConverseResponseTypeDef, ConverseStreamMetadataEventTypeDef, ConverseStreamOutputTypeDef, ImageBlockTypeDef, InferenceConfigurationTypeDef, MessageUnionTypeDef, + SystemContentBlockTypeDef, ToolChoiceTypeDef, ToolTypeDef, ) @@ -501,4 +502,4 @@ async def __anext__(self) -> T: if type(e.__cause__) is StopIteration: raise StopAsyncIteration else: - raise e + raise e \ No newline at end of file From 42fcd1c3ed545494be14600ecefa28a0490693b8 Mon Sep 17 00:00:00 2001 From: yilololo Date: Tue, 8 Apr 2025 22:08:57 +0800 Subject: [PATCH 2/2] fix lint --- pydantic_ai_slim/pydantic_ai/models/bedrock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydantic_ai_slim/pydantic_ai/models/bedrock.py b/pydantic_ai_slim/pydantic_ai/models/bedrock.py index c3fe77a792..bb2ead32f1 100644 --- a/pydantic_ai_slim/pydantic_ai/models/bedrock.py +++ b/pydantic_ai_slim/pydantic_ai/models/bedrock.py @@ -502,4 +502,4 @@ async def __anext__(self) -> T: if type(e.__cause__) is StopIteration: raise StopAsyncIteration else: - raise e \ No newline at end of file + raise e