Use TypeVar defaults for Generator (#120921)
* Use TypeVar defaults for Generator * Code review
This commit is contained in:
parent
4cc414fbf8
commit
414525503c
12 changed files with 25 additions and 27 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue