(v: Any)
| 97 | |
| 98 | |
| 99 | def _format_ts(v: Any) -> str | None: |
| 100 | if v is None: |
| 101 | return None |
| 102 | if hasattr(v, "strftime"): |
| 103 | return v.strftime("%Y-%m-%d %H:%M:%S") |
| 104 | return str(v) |
| 105 | |
| 106 | |
| 107 | def _gap_expr(symbol_expr: pl.Expr, ts_us_expr: pl.Expr, threshold_seconds: int = 24 * 3600) -> pl.Expr: |
no outgoing calls
no test coverage detected