Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Jan 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/the_black_code_style/future_style.md
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