Skip to content

Commit 84cfddc

Browse files
authored
Fix pyrefly type errors in spdl dataloader and pipeline_optimization
Differential Revision: D116680681 Pull Request resolved: #1611
1 parent d168816 commit 84cfddc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/spdl/autoresearch/pipeline_optimization/_ops/_analysis_ops.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,18 @@ def _append_master_result_row(
184184
workdir: Path,
185185
node: HypothesisNode,
186186
status: str,
187-
duration: object,
187+
duration: float | None,
188188
structured: dict | None,
189189
terminal_failure: FailureRecord | None,
190190
) -> None:
191-
# pyrefly: ignore [bad-assignment]
192191
row: dict[str, str | float] = {
193192
"run_id": node.node_id,
194193
"name": node.name,
195194
"job_id": node.job_id or "",
196195
"status": status,
197196
"changes": node.spec.get("description", ""),
198197
"change_summary": _change_summary_for_spec(node.spec),
199-
"duration_s": duration or "",
198+
"duration_s": duration if duration is not None else "",
200199
}
201200
if structured and "metrics" in structured:
202201
metrics = structured["metrics"]

0 commit comments

Comments
 (0)