Skip to content

Commit b3746d4

Browse files
committed
fix(bigquery-analytics): annotate content_parts to satisfy mypy-diff
The skip-parse branch assigned content_parts from a bare [] inside tuple unpacking, which mypy could not infer (var-annotated error on 3.10-3.13). Annotate content_json/content_parts/parser_truncated before the branch.
1 parent e3033dd commit b3746d4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/google/adk/plugins/bigquery_agent_analytics_plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,6 +3436,9 @@ async def _log_event(
34363436
# #321: when both payload columns are projected out, skip content parsing
34373437
# entirely -- no inline summary, no parts, and (critically) no GCS offload
34383438
# work for a row that retains neither payload column.
3439+
content_json: Any
3440+
content_parts: list[dict[str, Any]]
3441+
parser_truncated: bool
34393442
if {"content", "content_parts"} <= self._denied_columns:
34403443
content_json, content_parts, parser_truncated = None, [], False
34413444
else:

0 commit comments

Comments
 (0)