You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a behavior that seems inconsistant when expressions are chained with operators. I feel like the most readable solution is to break on the operators which to be the chosen solution for normal statements but not in some cases
Describe the style change
I found a behavior that seems inconsistant when expressions are chained with operators. I feel like the most readable solution is to break on the operators which to be the chosen solution for normal statements but not in some cases
Examples in the current Black style
Given the following input code:
Black breaks the plus signs and produces:
However, given the following input code:
Black produces the following output:
Desired style
I would find it more readable, comprehensible and logic to have the following:
Additional context
This category of strange (to me) behavior happens in many different cases as I saw it in standard librairies as well like setuptools (or distutils).
The text was updated successfully, but these errors were encountered: