Open tylerlaprade opened 4 days ago
F-string formatting is a preview-only feature because we implemented it after the 2024 style guide was released.
Ruff removes the whitespace inside the expression when using ruff.format.preview = true
(playground)
f'{"\n".join([f"•{k}" for k in [1, 2, 3]])}'
f'{ "\n".join([f"•{ k }" for k in [1,2,3]])}'
My extra whitespace is not removed from this line.