Skip to content

Commit

Permalink
Update document now that paren wrapping CMs on Python 3.9+ is impleme…
Browse files Browse the repository at this point in the history
…nted (#3520)
  • Loading branch information
yilei authored Jan 24, 2023
1 parent a36878e commit d950f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/the_black_code_style/future_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d950f15

Please sign in to comment.