Answer stability round 1: 0 🔴, 1 🟡; test the exit 1 a rejected reply that cannot be archived causes, and tidy keep's type and docstrings

This commit is contained in:
2026-10-16 23:22:41 +02:00
parent 13672afc26
commit 49004f22a2
4 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ UNKNOWN_RESET_POLL = 600
def retried(who: str, attempt: typing.Callable[[], T | Failure | Limited], effects: Effects, keep: typing.Callable[[Failure], Stop | None] = lambda failure: None) -> T | Stop:
"""The attempt's result, retried on a failure; keep sees each failure before the retry, and a Stop from it ends the retrying."""
"""The attempt's result, retried on a failure; keep sees each failure, the last of three included, and a Stop from it ends the retrying."""
failures = 0
while True:
result = attempt()