-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"yield from", instead of "yield" in a loop
This is a suggestion from pyupgrade: https://github.com/asottile/pyupgrade#yield--yield-from
- Loading branch information
1 parent
0a640d7
commit 5069f6c
Showing
1 changed file
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5069f6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this change. Do be aware there are known differences in behavior in select cases (asottile/pyupgrade#659), particularly if the generator isn't expected to be fully consumed. I doubt that's the case with these changes, so no need to spend more time on it, but I wanted to share for a broader understanding of this risk.