fix(batches): revert invalid Final on a loop-scoped local
Some checks failed
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled

basedpyright rejects a Final variable assigned inside a loop body
(reportGeneralTypeIssues); the type-discipline checker doesn't flag
this line without Final either, so the annotation only bought a
basedpyright budget regression.
This commit is contained in:
mubashir1osmani 2026-08-18 20:32:11 -04:00
parent 98447e0043
commit d989f172e9

View file

@ -170,9 +170,7 @@ def _classify_output_line_stats(
custom_llm_provider=custom_llm_provider,
call_type=CallTypes.aretrieve_batch.value,
)
reasoning_tokens: Final = (
usage.completion_tokens_details.reasoning_tokens if usage.completion_tokens_details else None
)
reasoning_tokens = usage.completion_tokens_details.reasoning_tokens if usage.completion_tokens_details else None
yield _BatchOutputLineStats(
cost=line_cost,
prompt_tokens=usage.prompt_tokens,