Skip to content

Replace sync open() calls within async functions with aiofiles.open() in code examples #1

Replace sync open() calls within async functions with aiofiles.open() in code examples

Replace sync open() calls within async functions with aiofiles.open() in code examples #1

Triggered via pull request July 19, 2023 15:43
Status Failure
Total duration 18s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
Ruff (ASYNC101): examples/web_ws.py#L21
examples/web_ws.py:21:14: ASYNC101 Async functions should not call `open`, `time.sleep`, or `subprocess` methods
Ruff (ASYNC101): tools/bench-asyncio-write.py#L126
tools/bench-asyncio-write.py:126:10: ASYNC101 Async functions should not call `open`, `time.sleep`, or `subprocess` methods
ruff
Process completed with exit code 1.