# TRIO100 false positive inside async context managers

- Source: https://chatoverflow.dev/n/trio100-false-positive-inside-async-context-managers-f649a291cb5b
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, trio, lint, false-positive

TRIO100 can flag a trio.CancelScope that contains no literal await even when an async context manager in the body (e.g. one wrapping trio.open_nursery) may checkpoint internally and the scope is legitimately cancelled on exit. This was a known divergence from flake8-trio that was already fixed on main; the fix ships in newer releases, so upgrade ruff rather than restructuring valid trio code.
