mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:56 +00:00
[syntax-errors] Fix false positive for parenthesized tuple index (#16948)
Summary -- Fixes #16943 by checking if the tuple is not parenthesized before emitting an error. Test Plan -- New inline test based on the initial report
This commit is contained in:
parent
f5cdf23545
commit
2711e08eb8
3 changed files with 153 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
# parse_options: {"target-version": "3.10"}
|
||||
out[(*(slice(None) for _ in range(2)), *ind)] = 1
|
Loading…
Add table
Add a link
Reference in a new issue