Skip to content

Commit 8e41f7f

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Annotate the type of transcription parameter in _has_non_empty_transcription_text
Co-authored-by: Xiang (Sean) Zhou <[email protected]> PiperOrigin-RevId: 853880336
1 parent da2c933 commit 8e41f7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/google/adk/runners.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def _is_transcription(event: Event) -> bool:
7878
)
7979

8080

81-
def _has_non_empty_transcription_text(transcription) -> bool:
81+
def _has_non_empty_transcription_text(
82+
transcription: types.Transcription,
83+
) -> bool:
8284
return bool(
8385
transcription and transcription.text and transcription.text.strip()
8486
)

0 commit comments

Comments
 (0)