Skip to content

Commit dd1f122

Browse files
author
Eviee Py
committed
Fix imports in commands ext
1 parent f01cb12 commit dd1f122

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

twitchio/ext/commands/bot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838
if TYPE_CHECKING:
3939
from collections.abc import Callable, Coroutine, Iterable
4040

41-
from models.eventsub_ import ChatMessage
42-
4341
from twitchio.eventsub.subscriptions import SubscriptionPayload
42+
from twitchio.models.eventsub_ import ChatMessage
4443
from twitchio.types_.eventsub import SubscriptionResponse
4544
from twitchio.types_.options import ClientOptions
4645
from twitchio.user import PartialUser

twitchio/ext/commands/components.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636
if TYPE_CHECKING:
3737
from collections.abc import Callable
3838

39-
from types_ import ComponentOptions
40-
4139
from .context import Context
40+
from .types_ import ComponentOptions
4241

4342

4443
__all__ = ("Component",)

twitchio/ext/commands/context.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
from collections.abc import Iterable
2828
from typing import TYPE_CHECKING, Any, Literal, TypeAlias
2929

30-
from twitchio.ext.commands.core import CommandErrorPayload
31-
30+
from .core import CommandErrorPayload
3231
from .exceptions import *
3332
from .view import StringView
3433

@@ -39,9 +38,9 @@
3938
if TYPE_CHECKING:
4039
from collections.abc import Callable, Coroutine
4140

42-
from models import SentMessage
43-
from models.eventsub_ import ChatMessage
44-
from user import Chatter, PartialUser
41+
from twitchio.models import SentMessage
42+
from twitchio.models.eventsub_ import ChatMessage
43+
from twitchio.user import Chatter, PartialUser
4544

4645
from .bot import Bot
4746
from .components import Component

twitchio/ext/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656

5757
if TYPE_CHECKING:
58-
from user import Chatter
58+
from twitchio.user import Chatter
5959

6060
from .context import Context
6161

twitchio/types_/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from collections.abc import MutableMapping
2626
from typing import Any, Literal, TypeAlias, TypedDict
2727

28-
from twitchio.user import PartialUser
28+
from ..user import PartialUser
2929

3030

3131
__all__ = ("HTTPMethod", "APIRequestKwargs", "APIRequest", "ParamMapping")

0 commit comments

Comments
 (0)