[llvm] [lit] Add an option to lit which ratelimits progressbar output. (PR #186479)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 13:54:17 PDT 2026
================
----------------
arichardson wrote:
```suggestion
def _float(arg, kind, pred):
try:
f = float(arg)
if not pred(f):
raise ValueError()
except ValueError:
raise argparse.ArgumentTypeError(f"requires {kind} float, but found '{arg}'")
return f
```
since we depend on modern python, we could use f-strings here to simplify?
https://github.com/llvm/llvm-project/pull/186479
More information about the llvm-commits
mailing list