mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
![]() ## Summary Part of #18972 This PR makes [cancel-scope-no-checkpoint (ASYNC100)](https://docs.astral.sh/ruff/rules/cancel-scope-no-checkpoint/#cancel-scope-no-checkpoint-async100)'s example error out-of-the-box [Old example](https://play.ruff.rs/6a399ae5-9b89-4438-b808-6604f1e40a70) ```py async def func(): async with asyncio.timeout(2): do_something() ``` [New example](https://play.ruff.rs/c44db531-d2f8-4a61-9e04-e5fc0ea989e3) ```py import asyncio async def func(): async with asyncio.timeout(2): do_something() ``` ## Test Plan <!-- How was it tested? --> N/A, no functionality/tests affected |
||
---|---|---|
.. | ||
resources | ||
src | ||
Cargo.toml |