Add type hints for TTS test fixtures (#118704)

This commit is contained in:
epenet 2024-06-03 17:43:18 +02:00 committed by GitHub
parent 32d4431f9b
commit f178467b0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 72 additions and 42 deletions

View file

@ -2,6 +2,7 @@
from http import HTTPStatus
import io
from pathlib import Path
from unittest.mock import patch
import wave
@ -33,7 +34,7 @@ def get_empty_wav() -> bytes:
@pytest.fixture(autouse=True)
def mock_tts_cache_dir_autouse(mock_tts_cache_dir):
def mock_tts_cache_dir_autouse(mock_tts_cache_dir: Path) -> Path:
"""Mock the TTS cache dir with empty dir."""
return mock_tts_cache_dir