All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
3 about: Create a report to help us improve Black's quality
10 Please make sure that the bug is not already fixed either in newer versions or the
11 current development version. To confirm this, you have three options:
13 1. Update Black's version if a newer release exists: `pip install -U black`
14 2. Use the online formatter at <https://black.vercel.app/?version=main>, which will use
15 the latest main branch.
16 3. Or run _Black_ on your machine:
17 - create a new virtualenv (make sure it's the same Python version);
18 - clone this repository;
19 - run `pip install -e .[d,python2]`;
20 - run `pip install -r test_requirements.txt`
21 - make sure it's sane by running `python -m pytest`; and
22 - run `black` like you did last time.
27 <!-- A clear and concise description of what the bug is. -->
32 Minimal steps to reproduce the behavior with source code and Black's configuration.
35 For example, take this code:
41 And run it with these arguments:
44 $ black file.py --target-version py39
47 The resulting error is:
49 > cannot format file.py: INTERNAL ERROR: ...
53 <!-- A clear and concise description of what you expected to happen. -->
57 <!-- Please complete the following information: -->
59 - Black's version: <!-- e.g. [main] -->
60 - OS and Python version: <!-- e.g. [Linux/Python 3.7.4rc1] -->
62 **Additional context**
64 <!-- Add any other context about the problem here. -->