Skip to content

Commit 747131e

Browse files
committed
Don't require anthropic unsupported content type to be covered by tests
1 parent 16bd7aa commit 747131e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/anthropic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ async def _rich_content_to_block(self, item: MultiModalContent) -> ImageBlockPar
396396
)
397397
else: # pragma: no cover
398398
raise RuntimeError(f'Unsupported media type: {item.media_type}')
399-
else:
399+
else: # pragma: no cover
400400
raise RuntimeError(f'Unsupported content type: {type(item)}')
401401

402402
@staticmethod

0 commit comments

Comments
 (0)