Skip to content

Commit ab72b22

Browse files
Chibi Vikramclaude
andcommitted
fix: add type assertion for project_id in SW reporting
Added assertion to ensure project_id is not None before calling create_eval_set_run_payload, fixing mypy type error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ba4ee21 commit ab72b22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uipath/_cli/_evals/_progress_reporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ def _create_eval_set_run_spec(
682682
is_coded: bool = False,
683683
) -> RequestSpec:
684684
"""Create request spec for creating an eval set run."""
685+
assert self._project_id is not None, "project_id is required for SW reporting"
685686
strategy = self._get_strategy(is_coded)
686687
payload = strategy.create_eval_set_run_payload(
687688
eval_set_id, agent_snapshot, no_of_evals, self._project_id

0 commit comments

Comments
 (0)