Answer architecture round 2: keep the judge's rules beside its verdicts, name record_ruling's steps, file HistoryChange with the history, give read_utf8 its own module, count a mis-cased round title, and repair the tracked_places docstring

This commit is contained in:
2026-10-09 14:49:34 +02:00
parent dde06fc465
commit b346a3572e
17 changed files with 197 additions and 101 deletions
+9 -1
View File
@@ -55,6 +55,14 @@ class Entry:
return self.against is not None
@dataclasses.dataclass(frozen=True)
class HistoryChange:
"""A merged change on the default branch that touched the history, and the history before and after it."""
commit: str
before: str
after: str
@dataclasses.dataclass(frozen=True)
class Heading:
title: str
@@ -109,7 +117,7 @@ def seat_places(body: str, labels: re.Pattern[str]) -> list[Place]:
listing = True
elif listing and line.startswith("- "):
places += bullet_places(line)
elif not line.startswith(" "):
elif line and not line.startswith(" "):
listing = False
return places