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
Operating system: Ubuntu
Python version: Python 3.7.3 Black version: 19.3b0
Does also happen on master: Yes
Thanks a lot for all your amazing work on black!
I understand that always getting the placement of comments always right is probably hard or impossible, but I was still very surprised by this behaviour of black. This code:
x= (
100*2+# direct ints400*4+# larger ints500*2+# unmodified1000*10# floats
)
This means that the comments get moved to the wrong part of the expressions, and then in the last line two comments are merged. I'd hope for this kind of output:
x= (
100*2# direct ints+400*4# larger ints+500*2# unmodified+1000*10# floats
)
The text was updated successfully, but these errors were encountered:
Operating system: Ubuntu
Python version: Python 3.7.3
Black version: 19.3b0
Does also happen on master: Yes
Thanks a lot for all your amazing work on black!
I understand that always getting the placement of comments always right is probably hard or impossible, but I was still very surprised by this behaviour of black. This code:
get's turned into:
This means that the comments get moved to the wrong part of the expressions, and then in the last line two comments are merged. I'd hope for this kind of output:
The text was updated successfully, but these errors were encountered: