Use TypeVar defaults for Generator (#120921)

* Use TypeVar defaults for Generator

* Code review
This commit is contained in:
Marc Mueller 2024-07-01 14:02:54 +02:00 committed by GitHub
parent 4cc414fbf8
commit 414525503c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 25 additions and 27 deletions

View file

@ -1,7 +1,7 @@
"""Fixtures for pyLoad integration tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
from unittest.mock import AsyncMock, MagicMock, patch
from pyloadapi.types import LoginResponse, StatusServerResponse
import pytest
@ -72,7 +72,7 @@ def pyload_config() -> ConfigType:
@pytest.fixture
def mock_pyloadapi() -> Generator[AsyncMock, None, None]:
def mock_pyloadapi() -> Generator[MagicMock]:
"""Mock PyLoadAPI."""
with (
patch(