|
1 | 1 | --- |
2 | 2 | source: crates/ruff_linter/src/rules/ruff/mod.rs |
3 | 3 | --- |
4 | | -RUF029.py:34:11: RUF029 Function `fail_1a` is declared `async`, but doesn't `await` or use `async` features. |
| 4 | +RUF029.py:38:11: RUF029 Function `fail_1a` is declared `async`, but doesn't `await` or use `async` features. |
5 | 5 | | |
6 | | -34 | async def fail_1a(): # RUF029 |
| 6 | +38 | async def fail_1a(): # RUF029 |
7 | 7 | | ^^^^^^^ RUF029 |
8 | | -35 | time.sleep(1) |
| 8 | +39 | time.sleep(1) |
9 | 9 | | |
10 | 10 |
|
11 | | -RUF029.py:38:11: RUF029 Function `fail_1b` is declared `async`, but doesn't `await` or use `async` features. |
| 11 | +RUF029.py:42:11: RUF029 Function `fail_1b` is declared `async`, but doesn't `await` or use `async` features. |
12 | 12 | | |
13 | | -38 | async def fail_1b(): # RUF029: yield does not require async |
| 13 | +42 | async def fail_1b(): # RUF029: yield does not require async |
14 | 14 | | ^^^^^^^ RUF029 |
15 | | -39 | yield "hello" |
| 15 | +43 | yield "hello" |
16 | 16 | | |
17 | 17 |
|
18 | | -RUF029.py:42:11: RUF029 Function `fail_2` is declared `async`, but doesn't `await` or use `async` features. |
| 18 | +RUF029.py:46:11: RUF029 Function `fail_2` is declared `async`, but doesn't `await` or use `async` features. |
19 | 19 | | |
20 | | -42 | async def fail_2(): # RUF029 |
| 20 | +46 | async def fail_2(): # RUF029 |
21 | 21 | | ^^^^^^ RUF029 |
22 | | -43 | with None as i: |
23 | | -44 | pass |
| 22 | +47 | with None as i: |
| 23 | +48 | pass |
24 | 24 | | |
25 | 25 |
|
26 | | -RUF029.py:47:11: RUF029 Function `fail_3` is declared `async`, but doesn't `await` or use `async` features. |
| 26 | +RUF029.py:51:11: RUF029 Function `fail_3` is declared `async`, but doesn't `await` or use `async` features. |
27 | 27 | | |
28 | | -47 | async def fail_3(): # RUF029 |
| 28 | +51 | async def fail_3(): # RUF029 |
29 | 29 | | ^^^^^^ RUF029 |
30 | | -48 | for i in []: |
31 | | -49 | pass |
| 30 | +52 | for i in []: |
| 31 | +53 | pass |
32 | 32 | | |
33 | 33 |
|
34 | | -RUF029.py:54:11: RUF029 Function `fail_4a` is declared `async`, but doesn't `await` or use `async` features. |
| 34 | +RUF029.py:58:11: RUF029 Function `fail_4a` is declared `async`, but doesn't `await` or use `async` features. |
35 | 35 | | |
36 | | -54 | async def fail_4a(): # RUF029: the /outer/ function does not await |
| 36 | +58 | async def fail_4a(): # RUF029: the /outer/ function does not await |
37 | 37 | | ^^^^^^^ RUF029 |
38 | | -55 | async def foo(): |
39 | | -56 | await bla |
| 38 | +59 | async def foo(): |
| 39 | +60 | await bla |
40 | 40 | | |
41 | 41 |
|
42 | | -RUF029.py:59:11: RUF029 Function `fail_4b` is declared `async`, but doesn't `await` or use `async` features. |
| 42 | +RUF029.py:63:11: RUF029 Function `fail_4b` is declared `async`, but doesn't `await` or use `async` features. |
43 | 43 | | |
44 | | -59 | async def fail_4b(): # RUF029: the /outer/ function does not await |
| 44 | +63 | async def fail_4b(): # RUF029: the /outer/ function does not await |
45 | 45 | | ^^^^^^^ RUF029 |
46 | | -60 | class Foo: |
47 | | -61 | async def foo(): |
48 | | - | |
49 | | - |
50 | | -RUF029.py:66:15: RUF029 Function `fail_4c` is declared `async`, but doesn't `await` or use `async` features. |
51 | | - | |
52 | | -65 | def foo(): |
53 | | -66 | async def fail_4c(): # RUF029: the /inner/ function does not await |
54 | | - | ^^^^^^^ RUF029 |
55 | | -67 | pass |
| 46 | +64 | class Foo: |
| 47 | +65 | async def foo(self): |
56 | 48 | | |
0 commit comments