Skip to content

Commit ea95653

Browse files
doquanghuyclaude
andcommitted
docs(workflows): fix stray escape sequence in --json redirect comments
The redirect helper's docstring and its test comment wrote ``print``\s, which renders as "print\s" rather than "prints". Replace with plain "prints". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent abfa237 commit ea95653

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/specify_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2761,7 +2761,7 @@ def _stdout_to_stderr_when(active: bool):
27612761
27622762
Suppressing the banner and the step-start callback is not enough to
27632763
keep a ``--json`` stream clean: individual steps may still write to
2764-
stdout while the engine runs — the gate step ``print``\\s its prompt,
2764+
stdout while the engine runs — the gate step prints its prompt,
27652765
and the prompt step runs a subprocess that inherits the process's
27662766
stdout file descriptor. Either would corrupt the single JSON object.
27672767

tests/test_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,7 @@ def test_resume_json(self, project_dir):
31473147

31483148
def test_json_redirect_keeps_stdout_clean(self, capfd):
31493149
# While a workflow runs under --json, steps can still write to stdout:
3150-
# the gate step ``print``\s its prompt and the prompt step runs a
3150+
# the gate step prints its prompt and the prompt step runs a
31513151
# subprocess that inherits the stdout fd. Both must be redirected to
31523152
# stderr so the JSON object on stdout stays parseable. capfd captures
31533153
# at the file-descriptor level, so it sees the subprocess output too.

0 commit comments

Comments
 (0)