mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Replace yield inside for loop with yield from (#631)
This commit is contained in:
parent
70aa80abf1
commit
ebd7f79326
1 changed files with 1 additions and 2 deletions
|
|
@ -253,8 +253,7 @@ class TelegramObject(ContextInstanceMixin, metaclass=MetaTelegramObject):
|
||||||
|
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
for item in self.to_python().items():
|
yield from self.to_python().items()
|
||||||
yield item
|
|
||||||
|
|
||||||
def iter_keys(self) -> typing.Generator[typing.Any, None, None]:
|
def iter_keys(self) -> typing.Generator[typing.Any, None, None]:
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue