mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-27 18:36:23 +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. |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| __init__.py | ||
| Cargo.toml | ||