Say in rule's docstring that code stamps the verdict with the chunk's items
This commit is contained in:
@@ -147,7 +147,7 @@ def worker_start(cycle: Cycle, answered: QuotedAnswer | TypedAnswer | None, step
|
|||||||
|
|
||||||
|
|
||||||
def rule(cycle: Cycle, transcript_path: str, quoted_answers: int) -> Ruled | Stop:
|
def rule(cycle: Cycle, transcript_path: str, quoted_answers: int) -> Ruled | Stop:
|
||||||
"""The judge's ruling. An interrupt or a quoted answer is archived as it is ruled, on the route the worker ran on until then, and then any step-up it makes, so the figures charge each stretch of work to its own rung."""
|
"""The judge's ruling, which code then stamps with the items the worker names, unless it is finished. An interrupt or a quoted answer is archived as it is ruled, on the route the worker ran on until then, and then any step-up it makes, so the figures charge each stretch of work to its own rung."""
|
||||||
entries = read_transcript(transcript_path)
|
entries = read_transcript(transcript_path)
|
||||||
if isinstance(entries, Failure):
|
if isinstance(entries, Failure):
|
||||||
return Stop(1, entries.reason)
|
return Stop(1, entries.reason)
|
||||||
|
|||||||
Reference in New Issue
Block a user