tests/data/cases/starred_for_target.py
raw| 1 | # flags: --minimum-version=3.10 |
| 2 | for x in *a, *b: |
| 3 | print(x) |
| 4 | |
| 5 | for x in a, b, *c: |
| 6 | print(x) |
| 7 | |
| 8 | for x in *a, b, c: |
| 9 | print(x) |
| 10 | |
| 11 | for x in *a, b, *c: |
| 12 | print(x) |
| 13 | |
| 14 | async for x in *a, *b: |
| 15 | print(x) |
| 16 | |
| 17 | async for x in *a, b, *c: |
| 18 | print(x) |
| 19 | |
| 20 | async for x in a, b, *c: |
| 21 | print(x) |
| 22 | |
| 23 | async for x in ( |
| 24 | *loooooooooooooooooooooong, |
| 25 | very, |
| 26 | *loooooooooooooooooooooooooooooooooooooooooooooooong, |
| 27 | ): |
| 28 | print(x) |