Skip to content

Commit d7ec76b

Browse files
committed
fix a pyright error
1 parent 4e3063d commit d7ec76b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/a2a/contrib/tasks/vertex_task_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def to_sdk_part(stored_part: genai_types.Part) -> Part:
9898
)
9999
)
100100
)
101-
if stored_part.file_data:
101+
if stored_part.file_data and stored_part.file_data.file_uri:
102102
return Part(
103103
root=FilePart(
104104
file=FileWithUri(

0 commit comments

Comments
 (0)