Lines with power operator **
with simple operands are wrapped too early
#3889
Labels
T: bug
Something isn't working
**
with simple operands are wrapped too early
#3889
Describe the bug
Black miscomputes the horizontal space required for lines containing the power operator
**
with simple operands, and rewraps them much earlier than the expected 88-character line length. Perhaps that computation wasn’t adjusted for #538/#2726.To Reproduce
Run Black with no arguments on this code (playground link):
Black leaves the first line unaffected, but unexpectedly wraps the second vertically, even though its horizontal layout is only 56 characters long.
Expected behavior
Both lines should be unchanged.
Environment
The text was updated successfully, but these errors were encountered: