Replace unnecessary typing_extensions imports for Generator (#122169)
parent
c28a138dfe
commit
2b486c3bd5
|
@ -1,11 +1,11 @@
|
|||
"""Define pytest.fixtures available for all tests."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from pyezviz import EzvizClient
|
||||
from pyezviz.test_cam_rtsp import TestRTSPAuth
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
"""Configuration for Israel rail tests."""
|
||||
|
||||
from collections.abc import Generator
|
||||
from datetime import datetime
|
||||
from unittest.mock import AsyncMock, patch
|
||||
from zoneinfo import ZoneInfo
|
||||
|
||||
from israelrailapi.api import TrainRoute
|
||||
import pytest
|
||||
from typing_extensions import Generator
|
||||
|
||||
from homeassistant.components.israel_rail import CONF_DESTINATION, CONF_START, DOMAIN
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
"""Fixtures for the recorder component tests."""
|
||||
|
||||
from collections.abc import AsyncGenerator, Generator
|
||||
from dataclasses import dataclass
|
||||
import threading
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import pytest
|
||||
from typing_extensions import AsyncGenerator, Generator
|
||||
|
||||
from homeassistant.components import recorder
|
||||
from homeassistant.components.recorder import db_schema
|
||||
|
|
Loading…
Reference in New Issue