4 ms·
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
by shpx 5y ago
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.