mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-30 03:27:07 +00:00
## Summary Part of #18972 This PR makes [blocking-http-call-in-async-function (ASYNC210)](https://docs.astral.sh/ruff/rules/blocking-http-call-in-async-function/#blocking-http-call-in-async-function-async210)'s example error out-of-the-box [Old example](https://play.ruff.rs/20cba4f4-fe2f-428a-a721-311d1a081e64) ```py async def fetch(): urllib.request.urlopen("https://example.com/foo/bar").read() ``` [New example](https://play.ruff.rs/5ca2a10d-5294-49ee-baee-0447f7188d9b) ```py import urllib async def fetch(): urllib.request.urlopen("https://example.com/foo/bar").read() ``` ## Test Plan <!-- How was it tested? --> N/A, no functionality/tests affected |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| Cargo.toml | ||