Improve type hints in elevenlabs tests (#123786)

This commit is contained in:
epenet 2024-08-13 12:10:15 +02:00 committed by GitHub
parent 78f7b3340d
commit e15ac2fbe0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ from __future__ import annotations
from http import HTTPStatus
from typing import Any
from unittest.mock import AsyncMock, patch
from unittest.mock import AsyncMock, MagicMock, patch
from elevenlabs.core import ApiError
from elevenlabs.types import GetVoicesResponse
@ -29,7 +29,7 @@ from tests.typing import ClientSessionGenerator
@pytest.fixture(autouse=True)
def tts_mutagen_mock_fixture_autouse(tts_mutagen_mock):
def tts_mutagen_mock_fixture_autouse(tts_mutagen_mock: MagicMock) -> None:
"""Mock writing tags."""