(value: Any, default: float = 0.0)
| 60 | |
| 61 | |
| 62 | def safe_float(value: Any, default: float = 0.0) -> float: |
| 63 | try: |
| 64 | return float(value) |
| 65 | except (TypeError, ValueError): |
| 66 | return default |
| 67 | |
| 68 | |
| 69 | def load_jsonl(path: Path) -> List[Dict[str, Any]]: |
no outgoing calls
no test coverage detected