(value: Any)
| 463 | |
| 464 | |
| 465 | def to_float(value: Any) -> float | None: |
| 466 | if value is None: |
| 467 | return None |
| 468 | try: |
| 469 | return float(value) |
| 470 | except (TypeError, ValueError): |
| 471 | return None |
| 472 | |
| 473 | |
| 474 | def format_compact(value: float | None) -> str: |
no outgoing calls
no test coverage detected