You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
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:
committed by
Copybara-Service
parent
da2c933b53
commit
8e41f7f6c8
@@ -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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user