chore: Annotate the type of transcription parameter in _has_non_empty_transcription_text

Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com>
PiperOrigin-RevId: 853880336
This commit is contained in:
Xiang (Sean) Zhou
2026-01-08 14:13:36 -08:00
committed by Copybara-Service
parent da2c933b53
commit 8e41f7f6c8
+3 -1
View File
@@ -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()
)