Import AsyncGenerator from collections.abc in tests (#121019)

* Force import of Async/Generator from collections.abc

* Adjust

* Don't force
This commit is contained in:
epenet 2024-07-04 20:24:27 +02:00 committed by GitHub
parent df1b02d44e
commit e07bf61f03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -1,10 +1,9 @@
"""Tests for the Twitch component.""" """Tests for the Twitch component."""
from collections.abc import AsyncIterator from collections.abc import AsyncGenerator, AsyncIterator
from typing import Any, Generic, TypeVar from typing import Any, Generic, TypeVar
from twitchAPI.object.base import TwitchObject from twitchAPI.object.base import TwitchObject
from typing_extensions import AsyncGenerator
from homeassistant.components.twitch import DOMAIN from homeassistant.components.twitch import DOMAIN
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant

View file

@ -1,8 +1,8 @@
"""Tests for the YouTube integration.""" """Tests for the YouTube integration."""
from collections.abc import AsyncGenerator
import json import json
from typing_extensions import AsyncGenerator
from youtubeaio.models import YouTubeChannel, YouTubePlaylistItem, YouTubeSubscription from youtubeaio.models import YouTubeChannel, YouTubePlaylistItem, YouTubeSubscription
from youtubeaio.types import AuthScope from youtubeaio.types import AuthScope