A messy dict literal
- Python code
- x = { 'a':37,'b':42, 'c':927}
- Line length
- 88
- String quotes
- Double "…"
- Indent
- 4 spaces
Result Formatted code: x = {"a": 37, "b": 42, "c": 927}
Lines out: 1
Lines changed: 1
- Parsed 2 lines of Python into a syntax tree
- Printed it back with 4-space indents, double quotes and a 88-character limit
- 1 output lines differ from the input
Two ragged lines with single quotes and no spaces after colons collapse into one 32-character line with double quotes, exactly as the Black docs show.