From 8e41f7f6c80d08301bdf184b5cccfaf244b88442 Mon Sep 17 00:00:00 2001 From: "Xiang (Sean) Zhou" Date: Thu, 8 Jan 2026 14:13:36 -0800 Subject: [PATCH] chore: Annotate the type of transcription parameter in _has_non_empty_transcription_text Co-authored-by: Xiang (Sean) Zhou PiperOrigin-RevId: 853880336 --- src/google/adk/runners.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/google/adk/runners.py b/src/google/adk/runners.py index 1135e447..620477ce 100644 --- a/src/google/adk/runners.py +++ b/src/google/adk/runners.py @@ -78,7 +78,9 @@ def _is_transcription(event: Event) -> bool: ) -def _has_non_empty_transcription_text(transcription) -> bool: +def _has_non_empty_transcription_text( + transcription: types.Transcription, +) -> bool: return bool( transcription and transcription.text and transcription.text.strip() )