Describe the bug
when formatting the following snippet
def func1[T: (int, str)](a,): ...
we get
def func1[T: (
int,
str,
)](a,): ...
we would expect:
def func[T: (int, str)](
a,
): ...
black version
black --version
black, 25.1.0 (compiled: yes)
Python (CPython) 3.12.7
This is more specific case of a bug discussed in #4254 (which has been fixed in 25.1.0)