tractor/tractor/trionics
Gud Boi 6764251e6b Clarify eg-wrap contract + tighten `stdout` typing
Doc/type accuracy in `supervise_run_process()`:

- the docstring claimed the rc!=0 `CalledProcessError` had
  "no nursery-eg-wrapped CPE to catch/`collapse_eg`", but it
  IS raised as a task into the parent `tn`, so under
  `trio>=0.33` it surfaces `ExceptionGroup`-wrapped like any
  `tn.start()`-task raise. Say so + point at `except*` /
  `collapse_eg()` (matching the inline rc-check comment).
- widen `stdout: int` to `int|None` — the param accepts an
  explicit `None` (inherit) per its own docstring.
- note that stdout is NOT captured, so the CPE note carries
  only stderr (a cmd logging errors to stdout should
  `relay_stdout=True`).

Review: PR #465 (copilot-pull-request-reviewer)
https://github.com/goodboy/tractor/pull/465#pullrequestreview-4548191641

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-06-24 19:09:45 -04:00
..
patches Add `tractor.trionics.patches` subpkg + first fix 2026-06-17 17:39:44 -04:00
__init__.py Add `supervise_run_process` to `trionics._subproc` 2026-06-24 18:19:16 -04:00
_beg.py Mk temp collapser bp work outside runtime as well.. 2025-08-18 10:46:37 -04:00
_broadcast.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_mngrs.py Drop commented-out `tractor.pause()` debug hooks 2026-04-09 17:41:28 -04:00
_subproc.py Clarify eg-wrap contract + tighten `stdout` typing 2026-06-24 19:09:45 -04:00
_taskc.py Tighten `start_or_cancel`'s startup-RTE match 2026-06-24 13:34:37 -04:00