(value: Any)
| 33 | |
| 34 | |
| 35 | def fmt(value: Any) -> str: |
| 36 | if value is None or value == "": |
| 37 | return "" |
| 38 | try: |
| 39 | return f"{float(value):.4f}" |
| 40 | except (TypeError, ValueError): |
| 41 | return "" |
| 42 | |
| 43 | |
| 44 | def read_top20(metrics_file: Path) -> dict[str, Any] | None: |