StanFromIreland · GitHub

Bug report

Bug description:

s = "" if number == 1 else "s"
print(
f"{number} loop{s} "
f"{theme.punctuation}-> "
f"{theme.timing}{time_taken:.{precision}g} secs{reset}"
)

This should instead account for the (unlikely) situation that time_taken == 1 sec, like we do for loops.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Read the original on github.com ↗