Replace yield inside for loop with yield from (#631)

This commit is contained in:
Almaz 2021-07-18 14:20:49 +03:00 committed by GitHub
parent 70aa80abf1
commit ebd7f79326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,8 +253,7 @@ class TelegramObject(ContextInstanceMixin, metaclass=MetaTelegramObject):
:return:
"""
for item in self.to_python().items():
yield item
yield from self.to_python().items()
def iter_keys(self) -> typing.Generator[typing.Any, None, None]:
"""