Answer prose round 1: 0 🔴, 7 🟡 (0 misread); reword the start's settings, docstrings and messages
CI / tests (pull_request) Successful in 3m44s
CI / tests (pull_request) Successful in 3m44s
This commit is contained in:
@@ -77,7 +77,7 @@ def offer_of(raw: object) -> tuple[str, str, str, str] | None:
|
||||
|
||||
|
||||
def offers_of(offered: object, key: str) -> list[tuple[str, str, str, str]] | Failure:
|
||||
"""Each transition in Jira's answer about those the issue named key has from its present status, as offer_of answers one."""
|
||||
"""The transitions Jira offers the issue named key from its present status, each as offer_of answers one. A Failure where offered, Jira's answer, is in another shape."""
|
||||
raw = offered.get("transitions") if isinstance(offered, dict) else None
|
||||
found = [offer for each in raw if (offer := offer_of(each))] if isinstance(raw, list) else []
|
||||
if not isinstance(raw, list) or len(found) != len(raw):
|
||||
|
||||
Reference in New Issue
Block a user