File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ def _check_voice(voice: str) -> str:
112
112
def _list_voices (run : bool ):
113
113
"""Print available voices in a table"""
114
114
if run :
115
- voice_table = Table ()
115
+ voice_table = Table () # type: ignore
116
116
voice_table .add_column ("Voice" )
117
117
voice_table .add_column ("Language/Locale" )
118
118
voice_table .add_column ("Style" )
@@ -240,7 +240,7 @@ def _text_to_speech(
240
240
SpinnerColumn (),
241
241
TextColumn ("[progress.description]{task.description}" ),
242
242
transient = True ,
243
- ) as progress :
243
+ ) as progress : # type: ignore
244
244
progress .add_task ("Synthesizing text..." , total = None )
245
245
# Synthesize the text according to CLI options
246
246
tts_out = tts_to_file (
Original file line number Diff line number Diff line change 21
21
Note: not run by pytest.
22
22
23
23
"""
24
+
24
25
# ruff: noqa: T201
25
26
if __name__ == "__main__" :
26
27
import atexit
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def test_voices_utils():
35
35
36
36
assert strip_markup ("hello" ) == "hello"
37
37
assert strip_markup ("<dajs dsajl>hello" ) == "hello"
38
+ assert strip_markup ("hello</jdfskfhds>" ) == "hello"
38
39
assert strip_markup ("<a>hello</a>" ) == "hello"
39
40
assert strip_markup ("<prefer:something>hello</else>" ) == "hello"
40
41
You can’t perform that action at this time.
0 commit comments