Skip to content

Fix formatted iter arrow double yield#8063

Open
HaukurPall wants to merge 2 commits intohuggingface:mainfrom
HaukurPall:fix-formatted-iter-arrow-double-yield
Open

Fix formatted iter arrow double yield#8063
HaukurPall wants to merge 2 commits intohuggingface:mainfrom
HaukurPall:fix-formatted-iter-arrow-double-yield

Conversation

@HaukurPall
Copy link
Contributor

I (+Claude) noticed this when reading the code. I did not encounter this bug (I think) so I can't say much more about it. Perhaps the second iteration will immediately stop so the bug is harmless, but to be safe I think a return there is safer.

HaukurPall and others added 2 commits March 11, 2026 12:28
When features is falsy, yield from completes and then falls through
to the for loop, iterating the inner iterable a second time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant