Use `anyio.sleep` for CLI rendering delays
Merged
KL
2mo ago+7+7+0123456789-5-5-0123456789
- Part of #7112. This PR does not close the broader Trio support issue.
Summary
Use anyio.sleep for the CLI status refresh and stream-renderer checkpoint. Clamp a negative custom spinner interval to zero to preserve the existing delay behavior. Update the status test to patch the new sleep call.
Verification
- CI passed: 22 successful checks, 31 skipped checks.
- Ruff and pre-commit checks passed.
- Local collection of the CLI status test requires
termflow, which is absent from this checkout; CI ran the test suite.
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver. (Not applicable.)
- PR title is fit for the release changelog.
AI Disclaimer
This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.