FR: format (or lint with fix) getitem called with tuples litteral (e.g. a[(b, c)]
-> a[b, c]
) ?
#11990
Labels
rule
Implementing or modifying a lint rule
This is an idea for a formatting or linting rule (not sure where it would fit best). Basically I'd like ruff to drop unneeded parentheses from
a[(b, c)]
(intoa[b, c]
). This pattern comes up a lot in idiomaticyt
, but there are currently no formatter (that we know of) for it, so our docs and code base have two widely spread, competing styles.I couldn't find a similar open issue, apologies if there is.
The text was updated successfully, but these errors were encountered: