Skip to content

Commit fcb0849

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent b319d13 commit fcb0849

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

discord/ui/action_row.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ def add_button(
186186

187187
return self.add_item(section)
188188

189-
def add_select(self, url: str, spoiler: bool = False, id: int | None = None) -> Self:
189+
def add_select(
190+
self, url: str, spoiler: bool = False, id: int | None = None
191+
) -> Self:
190192
"""Adds a :class:`TextDisplay` to the container.
191193
192194
Parameters
@@ -263,8 +265,7 @@ def enable_all_items(self, *, exclusions: list[Item] | None = None) -> Self:
263265
return self
264266

265267
def walk_items(self) -> Iterator[Item]:
266-
for item in self.items:
267-
yield item
268+
yield from self.items
268269

269270
def to_component_dict(self) -> ContainerComponentPayload:
270271
self._set_components(self.items)

0 commit comments

Comments
 (0)