name: Bug report about: Create a report to help us improve Black's quality title: "" labels: “T: bug” assignees: ""

Describe the bug

To Reproduce

For example, take this code:

this = "code"

And run it with these arguments:

$ black file.py --target-version py310

The resulting error is:

cannot format file.py: INTERNAL ERROR: ...

Expected behavior

Environment

  • Black's version:
  • OS and Python version:

Additional context