Upgrade code by using f-strings and yield from

This commit is contained in:
Lucas Hardt
2025-09-03 11:31:59 +02:00
committed by GitHub
parent 3f47698791
commit a7f349498a
3 changed files with 6 additions and 8 deletions

View File

@@ -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."""