Skip to content

Commit

Permalink
Add changelog and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 committed Dec 26, 2021
1 parent 5e6e8c2 commit 45b62ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -14,6 +14,7 @@
- Tuple unpacking on `return` and `yield` constructs now implies 3.8+ (#2700)
- Unparenthesized tuples on annotated assignments (e.g
`values: Tuple[int, ...] = 1, 2, 3`) now implies 3.8+ (#2708)
- Power operators now "hug" their operands if they're both "simple" (#2726)

## 21.12b0

Expand Down
6 changes: 6 additions & 0 deletions docs/the_black_code_style/current_style.md
Expand Up @@ -291,6 +291,12 @@ multiple lines. This is so that _Black_ is compliant with the recent changes in
[PEP 8](https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator)
style guide, which emphasizes that this approach improves readability.

Almost all operators will be surrounded by single spaces, the only exceptions are unary
operators (`+`, `-`, and `~`), and power operators when both its operands are considered
"simple". For power ops, an operand is considered "simple" if it's only a NAME, numeric
CONSTANT, or attribute access (chained attribute access is allowed), with or without a
preceding unary operator.

### Slices

PEP 8
Expand Down

0 comments on commit 45b62ee

Please sign in to comment.