Describe the bug
I have two lines which are same except for one line using ** and one line using // as operator. When I black the file both lines are broken differently. And for the ** unnecessary parenthesis are added on the mathematical expression on the right side of the assert statement. When I remove them manually afterwards and run black again, they are not added again.
Expected behavior A clear and concise description of what you expected to happen.
I expected both lines to be broken the same and the unnecessary parenthesis are not added.
Environment (please complete the following information):
Version: 20.8b1
OS and Python version: Win10/Python 3.8.2]
Does this bug also happen on master?
I used the online formatter and yes.
Describe the bug I have two lines which are same except for one line using
**
and one line using//
as operator. When Iblack
the file both lines are broken differently. And for the**
unnecessary parenthesis are added on the mathematical expression on the right side of theassert
statement. When I remove them manually afterwards and runblack
again, they are not added again.To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. I expected both lines to be broken the same and the unnecessary parenthesis are not added.
Environment (please complete the following information):
Does this bug also happen on master? I used the online formatter and yes.