all_tokens setter

This commit is contained in:
Kent Slaney 2024-10-31 09:33:47 -07:00
parent ad84a5f266
commit ed24c08166

View File

@ -279,7 +279,7 @@ class Transcriber(metaclass=PassthroughPropertyDefaults):
_initial_finalized: bool = False _initial_finalized: bool = False
_all_tokens: Optional[list] = None _all_tokens: Optional[list] = None
@property @PassthroughProperty[Optional[list]](None).property
def all_tokens(self): def all_tokens(self):
if self._all_tokens is None: if self._all_tokens is None:
self._all_tokens = [] self._all_tokens = []