Skip to content

Commit d839af0

Browse files
committed
ruff
1 parent cfa6475 commit d839af0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/a2a/contrib/tasks/vertex_task_converter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def to_sdk_part(stored_part: genai_types.Part) -> Part:
8787
if stored_part.text:
8888
return Part(root=TextPart(text=stored_part.text))
8989
if stored_part.inline_data:
90-
encoded_bytes = base64.b64encode(stored_part.inline_data.data or b'').decode(
91-
'utf-8'
92-
)
90+
encoded_bytes = base64.b64encode(
91+
stored_part.inline_data.data or b''
92+
).decode('utf-8')
9393
return Part(
9494
root=FilePart(
9595
file=FileWithBytes(

0 commit comments

Comments
 (0)