Skip to content

Commit b7a8f6b

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 057a26b commit b7a8f6b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

discord/ui/container.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

3-
from functools import partial
4-
from typing import TYPE_CHECKING, ClassVar, Iterator, TypeVar
3+
from typing import TYPE_CHECKING, Iterator, TypeVar
54

65
from ..colour import Colour
76
from ..components import ActionRow
@@ -113,7 +112,9 @@ def add_item(self, item: Item) -> Self:
113112
raise TypeError(f"expected Item not {item.__class__!r}")
114113

115114
if isinstance(item, (Button, Select)):
116-
raise TypeError(f"{item.__class__!r} cannot be added directly. Use ActionRow instead.")
115+
raise TypeError(
116+
f"{item.__class__!r} cannot be added directly. Use ActionRow instead."
117+
)
117118

118119
item._view = self.view
119120
if hasattr(item, "items"):

0 commit comments

Comments
 (0)