Skip to content

Commit

Permalink
Import AsyncGenerator from collections.abc in tests (#121019)
Browse files Browse the repository at this point in the history
* Force import of Async/Generator from collections.abc

* Adjust

* Don't force
  • Loading branch information
epenet authored Jul 4, 2024
1 parent df1b02d commit e07bf61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/components/twitch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""Tests for the Twitch component."""

from collections.abc import AsyncIterator
from collections.abc import AsyncGenerator, AsyncIterator
from typing import Any, Generic, TypeVar

from twitchAPI.object.base import TwitchObject
from typing_extensions import AsyncGenerator

from homeassistant.components.twitch import DOMAIN
from homeassistant.core import HomeAssistant
Expand Down
2 changes: 1 addition & 1 deletion tests/components/youtube/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Tests for the YouTube integration."""

from collections.abc import AsyncGenerator
import json

from typing_extensions import AsyncGenerator
from youtubeaio.models import YouTubeChannel, YouTubePlaylistItem, YouTubeSubscription
from youtubeaio.types import AuthScope

Expand Down

0 comments on commit e07bf61

Please sign in to comment.