Repository navigation
Handle zero totals in ProgressBar text display. - #15442
Merged
Merged
Conversation
Contributor
Author
|
CI follow-up for
🤖🤖 |
Carreau
force-pushed
the
codex/fix-progressbar-zero-total
branch
from
October 21, 2026 09:40
f7027be to
9ce674f
Compare
Carreau
approved these changes
Oct 21, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ProgressBar(len(items))cannot display an empty workload: whenitemsis empty, its plain-text representation divides by zero. Iterating the empty bar also triggers the same error while displaying it.Treat a zero total as an empty text bar with a
0/0count. Nonzero totals keep their existing fraction calculation.Regression coverage includes the zero-total text representation and parameterized empty/nonempty iteration, checking both the yielded values and the displayed final count.
Prepared with an OpenAI Codex agent. 🤖🤖