mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 00:13:01 +00:00
Upgrade code by using f-strings and yield from
This commit is contained in:
@@ -227,8 +227,7 @@ class ActionRow(Item[V]):
|
||||
An item in the action row.
|
||||
"""
|
||||
|
||||
for child in self.children:
|
||||
yield child
|
||||
yield from self.children
|
||||
|
||||
def content_length(self) -> int:
|
||||
""":class:`int`: Returns the total length of all text content in this action row."""
|
||||
|
Reference in New Issue
Block a user