Long conditions split inside calls, not at operators
Black splits function calls and subscripts instead of breaking long and/or or arithmetic expressions at the operator.
Tier II · Emerging Problems that are still building up.
5 public reports · first reported 4 May 2019 · last reported 22 December 2023
What's going wrong
Users of the Python formatter report that long conditionals, arithmetic and boolean expressions get wrapped around function arguments or subscripts rather than at the and, or and arithmetic operators.
AI-assisted: written with the help of AI from the reports. The idea report has the full summary.
In the idea report
- The full summary.
- The products the 5 reports are about, and how many came each month.
- Related problems.
No business has been found with this problem yet, so the report has no contacts. All sales are final — no refunds. Pricing.