File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pydantic_ai_slim/pydantic_ai Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments