From d0f67ce807bb33872d8bd94cd83c2289e632f6e7 Mon Sep 17 00:00:00 2001 From: Simone Date: Tue, 26 May 2026 21:34:07 +0200 Subject: [PATCH] fix: improve data extraction in _read_events function for better type handling --- src/ci_orchestrator/commands/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ci_orchestrator/commands/report.py b/src/ci_orchestrator/commands/report.py index 47dbb8a..9543e66 100644 --- a/src/ci_orchestrator/commands/report.py +++ b/src/ci_orchestrator/commands/report.py @@ -42,7 +42,8 @@ def _read_events(jsonl_path: Path) -> list[_Event]: continue if not isinstance(obj, dict): continue - data = obj.get("data") if isinstance(obj.get("data"), dict) else {} + _raw = obj.get("data") + data: dict[str, object] = _raw if isinstance(_raw, dict) else {} elapsed: int | None = None raw_elapsed = data.get("elapsedSec") if isinstance(raw_elapsed, int | float):