black breaks the type annotation into multiple lines when it's possible to keep it on one line #1765
Labels
F: linebreak
How should we split up lines?
T: bug
Something isn't working
T: style
What do we want Blackened code to look like?
Describe the bug
black breaks the type annotation into multiple lines, while existing formatting keep it on one line by using parentheses around expression
To Reproduce:
old formatting:
after black:
playground link: https://black.now.sh/?version=stable&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4AEZAK5dAD2IimZxl1N_WlXnON2nzNX9HFvHx6cBSdVHWyzJO6O50DK3ha9hxTlR0JwlWYXCXbF4CjYJWeEpyQIXtrrOkKmzjEkT25z6cJ4YzWm7pHh_LmznKdvIU8f2vDLKjoyxv-ZPlxXoOnqhPz8sGlioAQx7_azDc47CPs6gbJw5n5j0LZ-lBGbWsnS8ldMWJXrmleKBm2qB_EmzBNy6IQNsCElvvBmM-J3BIWV55zK6IAAAAAMi_lQVqdYNAAHKAZoCAAARFT-fscRn-wIAAAAABFla
Expected behavior
black keeps existing formatting
Environment:
Does this bug also happen on master?
Yes.
The text was updated successfully, but these errors were encountered: