mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 12:25:10 +00:00
## Summary Adding parentheses to a tuple in a subscript with elements that include slice expressions causes a syntax error. For example, `d[(1,2,:)]` is a syntax error. So, when `lint.ruff.parenthesize-tuple-in-subscript = true` and the tuple includes a slice expression, we skip this check and fix. Closes #12766. |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||