simplify auto-formatting output

This commit is contained in:
Kent Slaney 2024-07-14 19:37:18 -06:00
parent 0621ed8094
commit c09790488b

View File

@ -212,9 +212,7 @@ class Transcriber(metaclass=PassthroughPropertyDefaults):
def task(self, value: str): def task(self, value: str):
self._task = value self._task = value
if self.word_timestamps and value == "translate": if self.word_timestamps and value == "translate":
warnings.warn( warnings.warn("Word-level timestamps on translations may not be reliable.")
"Word-level timestamps on translations may not be " "reliable."
)
@PassthroughProperty(False).setter @PassthroughProperty(False).setter
def word_timestamps(self, value: bool): def word_timestamps(self, value: bool):