RUF031 incorrectly-parenthesized-tuple-in-subscript: false negative
Author: spaceoneCreated Sep 27, 2026Updated Sep 28, 2026
Labelsruleneeds-decision
I wish for a rule or formatter which makes the following transition:
-LDAPSearchResult: TypeAlias = tuple[(str, LDAPEntryDict)]
+LDAPSearchResult: TypeAlias = tuple[str, LDAPEntryDict]recent versions of mypy's stubgen create the tuple-based version.
Source: astral-sh/ruff