Skip to content

Commit d17c004

Browse files
committed
fix: add type: ignore for new InputValidationError calls
1 parent 6e13ad2 commit d17c004

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/google/adk/artifacts/gcs_artifact_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,12 @@ def _save_artifact(
232232
)
233233
elif artifact.file_data:
234234
if not artifact.file_data.file_uri:
235-
raise InputValidationError("Artifact file_data must have a file_uri.")
235+
raise InputValidationError( # type: ignore[no-untyped-call]
236+
"Artifact file_data must have a file_uri."
237+
)
236238
if artifact_util.is_artifact_ref(artifact):
237239
if not artifact_util.parse_artifact_uri(artifact.file_data.file_uri):
238-
raise InputValidationError(
240+
raise InputValidationError( # type: ignore[no-untyped-call]
239241
f"Invalid artifact reference URI: {artifact.file_data.file_uri}"
240242
)
241243
# Store the URI as blob metadata; no content to upload.

0 commit comments

Comments
 (0)