Skip to content

Commit d59fdac

Browse files
committed
coverage
1 parent 7b4ad0d commit d59fdac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydantic_ai_slim/pydantic_ai/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,14 +514,14 @@ def narrow_type(bc: BinaryContent) -> BinaryContent | BinaryImage:
514514
vendor_metadata=bc.vendor_metadata,
515515
)
516516
else:
517-
return bc # pragma: no cover
517+
return bc
518518

519519
@classmethod
520520
def from_data_uri(cls, data_uri: str) -> BinaryContent:
521521
"""Create a `BinaryContent` from a data URI."""
522522
prefix = 'data:'
523523
if not data_uri.startswith(prefix):
524-
raise ValueError('Data URI must start with "data:"') # pragma: no cover
524+
raise ValueError('Data URI must start with "data:"')
525525
media_type, data = data_uri[len(prefix) :].split(';base64,', 1)
526526
return cls.narrow_type(cls(data=base64.b64decode(data), media_type=media_type))
527527

0 commit comments

Comments
 (0)