Import Generator from typing_extensions (3) (#118990)
This commit is contained in:
parent
0ecab967dd
commit
33ed4fd862
93 changed files with 258 additions and 257 deletions
|
@ -1,11 +1,11 @@
|
|||
"""Fixtures for IPP integration tests."""
|
||||
|
||||
from collections.abc import Generator
|
||||
import json
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
from pyipp import Printer
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.components.ipp.const import CONF_BASE_PATH, DOMAIN
|
||||
from homeassistant.const import (
|
||||
|
@ -39,7 +39,7 @@ def mock_config_entry() -> MockConfigEntry:
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Mock setting up a config entry."""
|
||||
with patch(
|
||||
"homeassistant.components.ipp.async_setup_entry", return_value=True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue