Answer principles round 1: 0 🔴, 4 🟡 (0 misread); drop typing.cast and subTest loops from new code, state the price list's two uses, record the subTest decision
This commit is contained in:
@@ -61,7 +61,7 @@ def annotation_lines(annotation: Annotation) -> str:
|
||||
|
||||
# Nothing reads a Spent block yet: the first tool that derives dollars from one adds its parser here, beside this writer.
|
||||
def spent_block(since: str, found: dict[Spender, Tokens]) -> str:
|
||||
"""The archive's block for what the stretch spent, then the list prices in force for each model in it; empty where nothing was spent."""
|
||||
"""The archive's block for what the stretch spent, then the list prices in force for each model in it that has one; empty where nothing was spent."""
|
||||
if not found:
|
||||
return ""
|
||||
spenders = [f"- {name}, {model}: {', '.join(map(str, (tokens.input, tokens.write_5m, tokens.write_1h, tokens.read, tokens.output)))}" for (name, model), tokens in found.items()]
|
||||
|
||||
Reference in New Issue
Block a user