Collapse compressed-tensors export help line so ruff-format converges

The print line in print_quantization_methods needed two ruff-format passes to
reach a fixpoint (merge implicit string concat, then collapse the single-arg
print). pre-commit.ci applies one pass per run, so it kept reformatting. Land
the converged single-line form directly.
This commit is contained in:
Daniel Han 2026-06-28 05:52:00 +00:00
commit ead91233eb

View file

@ -216,9 +216,7 @@ def _normalize_compressed_method(save_method):
def print_quantization_methods():
for key, value in ALLOWED_QUANTS.items():
print(f'"{key}" ==> {value}')
print(
"\nCompressed-tensors export (save_pretrained_merged(..., save_method=...), for vLLM):"
)
print("\nCompressed-tensors export (save_pretrained_merged(..., save_method=...), for vLLM):")
seen = set()
for key, (scheme, needs_calib, _suffix) in COMPRESSED_EXPORT_SCHEMES.items():
if scheme in seen: