(value: Any, default: float = 0.0)
| 155 | |
| 156 | |
| 157 | def safe_float(value: Any, default: float = 0.0) -> float: |
| 158 | try: |
| 159 | return float(value) |
| 160 | except (TypeError, ValueError): |
| 161 | return default |
| 162 | |
| 163 | |
| 164 | def load_jsonl(path: Path) -> List[Dict[str, Any]]: |
no outgoing calls
no test coverage detected