Answer prose round 1: 0 🔴, 16 🟡; say position not rank, split the changelog entry, tighten messages and details
This commit is contained in:
+2
-3
@@ -65,7 +65,6 @@ def write_cited(moves: Moves) -> str:
|
||||
return ", ".join(goal for goal, _ in moves)
|
||||
|
||||
|
||||
# The current shape.
|
||||
SHAPE = Shape(("R", "S", "C"), MOVES, parse_moves, write_moves)
|
||||
# The shape from before MOVES replaced A, G and Goals, which older todo.md files hold.
|
||||
OLD_SHAPE = Shape(("R", "S", "C", "A", "G"), "Goals", parse_cited, write_cited)
|
||||
@@ -101,7 +100,7 @@ class Table:
|
||||
|
||||
|
||||
def shape_of(columns: tuple[str, ...]) -> Shape:
|
||||
"""The items table's shape: OLD_SHAPE where columns hold one only that shape has and no MOVES, else SHAPE, so a misspelt MOVES is named as missing."""
|
||||
"""OLD_SHAPE where the columns include A, G or Goals and not MOVES; else SHAPE, so a misspelt MOVES is reported missing."""
|
||||
old_only = set(OLD_SHAPE.columns) - set(SHAPE.columns)
|
||||
return OLD_SHAPE if MOVES not in columns and old_only.intersection(columns) else SHAPE
|
||||
|
||||
@@ -200,7 +199,7 @@ def check_cells(row: str, named: dict[str, str]) -> Failure | None:
|
||||
|
||||
|
||||
def parse_scores(id_: str, named: dict[str, str], names: tuple[str, ...]) -> dict[str, int] | Failure:
|
||||
"""Each score of names the row holds; only C may be missing, since the table holds every needed column."""
|
||||
"""Each score in names that the row holds; only C may be missing, since the table holds every needed column."""
|
||||
scores: dict[str, int] = {}
|
||||
for name in names:
|
||||
if name not in named:
|
||||
|
||||
Reference in New Issue
Block a user