Name each entry shape written_by_human checks, and annotate every parameter in loop_claude
This commit is contained in:
@@ -3,7 +3,7 @@ import pathlib
|
||||
from loop_claude.outcome import Stop
|
||||
|
||||
|
||||
def read_premises(root) -> str | Stop:
|
||||
def read_premises(root: str) -> str | Stop:
|
||||
try:
|
||||
found = sections(pathlib.Path(root, "README.md").read_text(encoding="utf-8"))
|
||||
except OSError as failure:
|
||||
@@ -22,7 +22,7 @@ def read_premises(root) -> str | Stop:
|
||||
return f"## Goals\n{found['Goals'][0]}\n\n## Audience\n{found['Audience'][0]}"
|
||||
|
||||
|
||||
def sections(text) -> dict[str, list[str]]:
|
||||
def sections(text: str) -> dict[str, list[str]]:
|
||||
blocks: list[tuple[str | None, list[str]]] = []
|
||||
fenced = False
|
||||
for line in text.splitlines():
|
||||
|
||||
Reference in New Issue
Block a user