Skip to content

Commit 46aa671

Browse files
committed
🐛 Fix imports 2
Signed-off-by: Paillat-dev <[email protected]>
1 parent 5f2c416 commit 46aa671

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/components/components_holder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
from typing_extensions import TypeVarTuple, Unpack, override
66

7-
from .component import Component, WalkableComponent
8-
from .partial_components import PartialComponent, PartialWalkableComponent
7+
from .component import Component, WalkableComponentMixin
8+
from .partial_components import PartialComponent, PartialWalkableComponentMixin
99
from .type_aliases import AnyComponent, AnyPartialComponent
1010

1111
Ts = TypeVarTuple(
@@ -37,7 +37,7 @@ def get_by_id(self, component_id: str | int) -> AnyComponent | AnyPartialCompone
3737
elif isinstance(component_id, int) and getattr(component, "id", None) == component_id:
3838
return component
3939

40-
if isinstance(component, (WalkableComponent, PartialWalkableComponent)):
40+
if isinstance(component, (WalkableComponentMixin, PartialWalkableComponentMixin)):
4141
if found := component.get_by_id(component_id):
4242
return found
4343
return None

0 commit comments

Comments
 (0)