cobalt

Results 138 comments of cobalt
trafficstars

This issue has been long fixed with the unstable `multiline_string_handling` feature.

@yilei I've opened #4312 that fixes this issue. I added it under the `--unstable` style (at least for now) due to #4036. It's also worth noting that the current `--unstable`...

Interesting, it looks like there's some special logic here for `type: ignore` comments ```diff -if (( +if ( # type: ignore True -)): +): print("hw") ``` This code results in...

Related to #3887. Looks like this is an intentional change as per #4066, and disabling e701 should be documented.

The main branch has updated docs already.

This would have to go in [the preview style](https://black.readthedocs.io/en/stable/the_black_code_style/future_style.html#preview-style) since it changes existing formatting. Not sure the best way to go about it though, since it looks like it'd be...

> To me, this kind of says "it's a bug" and points to not putting it in `Preview`. From what I can see based on the tests, this shouldn't change...

From my tests, the line range only fails when the range ends on the last line *and the last line is empty*

In [the playground](https://black.vercel.app/?version=stable&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4ACUAFpdAD2IimZxl1N_WlXnON2nzNCa_QqBAQtCeZv7ozfAdoKbfHGTVDnoeAovGRAxLiuSSjYzfwcG5engTB1WPSEb83ZYxJ0yg9Bo0wgUVUfPxeYUjCZbp8x2ikKQrAAAAJoWzpj2XOSIAAF2lQEAAAAE9XS_scRn-wIAAAAABFla), it looks like your proposed style is already in use? See #1646

I tried fixing this but ran into some issues. Writing this as a reference for anyone else who decides to try. For context, Black’s current style is to add blank...