News for hackers. Stuff that matters.
Re:Black, the uncompromising Python code formatter, is stable by shpx on Saturday January 29, 2022 @04:36PM (#30130763)
Black will use single quotes if your string contains double quotes and no single quotes. It'll reformat

     print("\"Hello\" he said")
to

     print('"Hello" he said')
I think pretty much all formatters for languages that let you use either quote do this. It makes sense.

There are no comments on this comment yet.