Open TomFryers opened 2 years ago
I agree, cross-linking with https://github.com/psf/black/issues/3080.
this would be great to include, it can be quite annoying having code that looks like this:
version, = struct.unpack("<f", field.read(4))
into this
(version,) = struct.unpack("<f", field.read(4))
(edit: although im gonna assume that some people would think the former is less readable)
Remove optional brackets around unpacking
Since #2945, Black removes brackets in the following situation:
Perhaps this should be extended to include unpacking assignments. Examples in the current Black style
Desired style
Additional context
The current style is unstable in situations like the following: