Update document now that paren wrapping CMs on Python 3.9+ is implemented (#3520)

This commit is contained in:
Yilei "Dolee" Yang 2023-01-23 21:38:30 -08:00 committed by GitHub
parent a36878eb2f
commit d950f15987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,8 @@ with \
... # backslashes and an ugly stranded colon
```
Although when the target version is Python 3.9 or higher, _Black_ will, when we
implement this, use parentheses instead since they're allowed in Python 3.9 and higher.
Although when the target version is Python 3.9 or higher, _Black_ uses parentheses
instead in `--preview` mode (see below) since they're allowed in Python 3.9 and higher.
An alternative to consider if the backslashes in the above formatting are undesirable is
to use {external:py:obj}`contextlib.ExitStack` to combine context managers in the