Import Generator from typing_extensions (3) (#118990)

This commit is contained in:
Marc Mueller 2024-06-06 17:28:59 +02:00 committed by GitHub
parent 0ecab967dd
commit 33ed4fd862
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
93 changed files with 258 additions and 257 deletions

View file

@ -1,9 +1,9 @@
"""conftest for the GitHub integration."""
from collections.abc import Generator
from unittest.mock import patch
import pytest
from typing_extensions import Generator
from homeassistant.components.github.const import CONF_REPOSITORIES, DOMAIN
from homeassistant.const import CONF_ACCESS_TOKEN
@ -27,7 +27,7 @@ def mock_config_entry() -> MockConfigEntry:
@pytest.fixture
def mock_setup_entry() -> Generator[None, None, None]:
def mock_setup_entry() -> Generator[None]:
"""Mock setting up a config entry."""
with patch("homeassistant.components.github.async_setup_entry", return_value=True):
yield