Skip to content

Commit 9255c39

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent c2bd6b5 commit 9255c39

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

discord/ui/button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141

4242
if TYPE_CHECKING:
4343
from ..emoji import AppEmoji, GuildEmoji
44-
from .view import BaseView
4544
from ..types.components import ButtonComponent as ButtonComponentPayload
45+
from .view import BaseView
4646

4747
B = TypeVar("B", bound="Button")
4848
V = TypeVar("V", bound="BaseView", covariant=True)

discord/ui/label.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ def to_component_dict(self) -> LabelComponentPayload:
339339
self._set_component_from_item(self.item)
340340
return super().to_component_dict()
341341

342-
def refresh_from_modal(self, interaction: Interaction, data: LabelComponentPayload) -> None:
342+
def refresh_from_modal(
343+
self, interaction: Interaction, data: LabelComponentPayload
344+
) -> None:
343345
return self.item.refresh_from_modal(interaction, data.get("component", {}))
344346

345347
@classmethod

0 commit comments

Comments
 (0)