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)] (into a[b, c]). This pattern comes up a lot in idiomatic yt, 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.
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.