Python 3.12 def f[T: Generics](...)
#4355
Labels
T: style
What do we want Blackened code to look like?
def f[T: Generics](...)
#4355
Describe the style change
I have found the way black is handling inline generics ie
def f[T](...)
a little unexpected and less consistent with prior style.Examples in the current Black style
Using non inline generics, the function is split along the arguments, this is expected.
Using python312 inline generics, the function is split within the generics declaration. If you consider the
git diff
this is a much more substantial change vs theDesired style
.Desired style
Retain the prior style and keep the inline generics inline with the function name
Additional context
There appears to be a bug with trailing comma's?
The text was updated successfully, but these errors were encountered: