Repository navigation
Commit e2ede47
committed
Python: treat await expressions as side-effecting
Prevent ineffectual-statement false positives when awaiting a task or coroutine without assigning its returned value. Add regression cases for both forms.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f0800d30-e4f9-463c-a0d8-660fe1aceaf11 parent 69787a2 commit e2ede47
3 files changed
Lines changed: 21 additions & 0 deletions
File tree
- python/ql
- lib
- change-notes
- semmle/python
- test/query-tests/Statements/no_effect
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| 626 | + | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments