Skip to content

Commit dd420f4

Browse files
committed
Typing tweaks
1 parent e7d5cf6 commit dd420f4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/icespeak/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _check_voice(voice: str) -> str:
112112
def _list_voices(run: bool):
113113
"""Print available voices in a table"""
114114
if run:
115-
voice_table = Table()
115+
voice_table = Table() # type: ignore
116116
voice_table.add_column("Voice")
117117
voice_table.add_column("Language/Locale")
118118
voice_table.add_column("Style")
@@ -240,7 +240,7 @@ def _text_to_speech(
240240
SpinnerColumn(),
241241
TextColumn("[progress.description]{task.description}"),
242242
transient=True,
243-
) as progress:
243+
) as progress: # type: ignore
244244
progress.add_task("Synthesizing text...", total=None)
245245
# Synthesize the text according to CLI options
246246
tts_out = tts_to_file(

tests/cache_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
Note: not run by pytest.
2222
2323
"""
24+
2425
# ruff: noqa: T201
2526
if __name__ == "__main__":
2627
import atexit

tests/test_tts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def test_voices_utils():
3535

3636
assert strip_markup("hello") == "hello"
3737
assert strip_markup("<dajs dsajl>hello") == "hello"
38+
assert strip_markup("hello</jdfskfhds>") == "hello"
3839
assert strip_markup("<a>hello</a>") == "hello"
3940
assert strip_markup("<prefer:something>hello</else>") == "hello"
4041

0 commit comments

Comments
 (0)