Sort the shipped-feature imports and type what a bench makes its tasks from

This commit is contained in:
2026-11-24 00:33:08 +01:00
parent 8e43967fac
commit 74ffd6da53
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -175,11 +175,11 @@ from claude_code.entries import entry_from, json_objects
from mutate_changes.tool_process import failed, Ran, run_tool
from failure import Failure
from task_bench.feature_tasks import feature_tasks, Features, read_features
from task_bench.shipped_features import read_shipped, shipped_tasks, ShippedFeatures
from task_bench.figures import figures, Result, Side, SIDES, table
from git_cli import git_repo
from review_rules.review_folder import made_review_folder, REPORTS
from larv_review.history_commands import read_places
from task_bench.shipped_features import read_shipped, shipped_tasks, ShippedFeatures
from task_bench.record_figures import recorded_bench
from run_heavy.capped_docker import SHARE_VARIABLE
@@ -274,7 +274,7 @@ def bench(given: dict[str, str], env: typing.Mapping[str, str], read: typing.Cal
# so a fault there stops the bench at once.
kind = KINDS[given[TASKS]]
# Shipped features are read from the base's history, once the base is known.
tasks_from = None if kind is SHIPPED else read(home) if kind is BUG else read_features(home, kind)
tasks_from: str | Features | ShippedFeatures | Failure | None = None if kind is SHIPPED else read(home) if kind is BUG else read_features(home, kind)
if isinstance(tasks_from, Failure):
return tasks_from
git = functools.partial(git_repo.git, env=env)