mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-03 21:23:45 +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. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| package | ||
| project | ||
| __init__.py | ||
| disallowed_rule_names.txt | ||