Misleading formatting of long parenthesized yields of tuples #1553
Labels
S: accepted
The changes in this design / enhancement issue have been accepted and can be implemented
T: style
What do we want Blackened code to look like?
When code of the form
(yield a, b)
is split into multiple lines, Black puts theyield a
andb
each on its own line. This is misleading, because in fact this code yields the tuple(a, b)
, while Black's output makes it look like we yield onlya
.Examples in the current Black style
Desired style
I encountered this in code using github.com/quora/asynq, which frequently contains statements of the form
a, b = yield get_a.asynq(), get_b.asynq()
.The text was updated successfully, but these errors were encountered: