-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23adf32
commit 3921a32
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...nc/snapshots/ruff_linter__rules__flake8_async__tests__async109_python_310_or_older-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_async/mod.rs | ||
--- | ||
|
14 changes: 14 additions & 0 deletions
14
...sync/snapshots/ruff_linter__rules__flake8_async__tests__async109_python_310_or_older.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_async/mod.rs | ||
--- | ||
ASYNC109_0.py:8:16: ASYNC109 Async function definition with a `timeout` parameter | ||
| | ||
8 | async def func(timeout): | ||
| ^^^^^^^ ASYNC109 | ||
9 | ... | ||
| | ||
= help: Use `trio.fail_after` instead | ||
|
||
ASYNC109_0.py:12:16: ASYNC109 Async function definition with a `timeout` parameter | ||
| | ||
12 | async def func(timeout=10): | ||
| ^^^^^^^^^^ ASYNC109 | ||
13 | ... | ||
| | ||
= help: Use `trio.fail_after` instead |