News for hackers. Stuff that matters.
Re:Python 3's F-Strings: An Improved String Formatting Syntax by nimih on Wednesday January 20, 2021 @06:59PM (#25853552)
For what it's worth, black appears to do a reasonable thing and preserves the semantics of your quoted strings (as is promised by the documentation):

  $ echo "'foo'" | black -
  "foo"
  
  $ echo "'foo[\"bar\"]'" | black -
  'foo["bar"]'

  $ echo "'foo[\"bar\"]+\\'baz\\''" | black -
  "foo[\"bar\"]+'baz'"

There are no comments on this comment yet.