File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
66[project ]
77name = " pytranscript"
8- version = " 0.2.2 "
8+ version = " 0.2.3 "
99description = " CLI to transcript and translate audio and video files"
1010readme = " README.md"
1111requires-python = " >=3.12"
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ def transcribe_with_vosk(
400400 return transcript
401401
402402
403- AllTranscriptFormats = TranscriptFormat | Literal [ "all" ]
403+ ALL_TRANSCRIPT_FORMATS = ( * TRANSCRIPT_FORMATS , "all" )
404404
405405
406406class ArgumentParser (tap .Tap ):
@@ -447,9 +447,7 @@ class ArgumentParser(tap.Tap):
447447 3: debug. Default: 2."""
448448
449449 def _init_format (self ):
450- if not (
451- self .format in typing .get_args (AllTranscriptFormats ) or self .format is None
452- ):
450+ if not (self .format in ALL_TRANSCRIPT_FORMATS or self .format is None ):
453451 msg = f"bad transcript format: { self .format } "
454452 raise ValueError (msg )
455453
You can’t perform that action at this time.
0 commit comments