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