Commit 5d3f3e9
We move the logic from `Checker::in_async_context` (from when it
implements `SemanticSyntaxContext`) into the similarly named method in
`SemanticModel`. This affects the following rules:
- ASYNC105
- ASYNC210
- ASYNC212
- ASYNC220
- ASYNC221
- ASYNC222
- ASYNC230
- ASYNC240
- ASYNC250
- ASYNC251
- UP028
Closes astral-sh#23425
1 parent f51c382 commit 5d3f3e9
4 files changed
Lines changed: 24 additions & 13 deletions
File tree
- crates
- ruff_linter
- resources/test/fixtures/flake8_async
- src
- checkers/ast
- rules/flake8_async/snapshots
- ruff_python_semantic/src
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
| 800 | + | |
811 | 801 | | |
812 | 802 | | |
813 | 803 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1595 | 1595 | | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | | - | |
1599 | | - | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1600 | 1605 | | |
1601 | 1606 | | |
1602 | 1607 | | |
| |||
0 commit comments