Vasco Schiavo
|
999fd4f885
|
[`refurb`] Fix starred expressions fix (`FURB161`) (#16550)
The PR partially solves issue #16457
Specifically, it solves the following problem:
```text
$ cat >furb161_1.py <<'# EOF'
print(bin(*[123]).count("1"))
# EOF
$ python furb161_1.py
6
$ ruff --isolated check --target-version py310 --preview --select FURB161 furb161_1.py --diff 2>&1 | grep error:
error: Fix introduced a syntax error. Reverting all changes.
```
Now starred expressions are corrected handled.
|
2025-03-19 17:43:58 -04:00 |