mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Import Generator from typing_extensions (1) (#118986)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
"""Common fixtures for the NEW_NAME tests."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
with patch(
|
||||
"homeassistant.components.NEW_DOMAIN.async_setup_entry", return_value=True
|
||||
|
@@ -1,13 +1,13 @@
|
||||
"""Common fixtures for the NEW_NAME tests."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
with patch(
|
||||
"homeassistant.components.NEW_DOMAIN.async_setup_entry", return_value=True
|
||||
|
Reference in New Issue
Block a user