Skip to content

Commit

Permalink
Rebase Pyink to psf@7816393.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 495899550
  • Loading branch information
yilei authored and Copybara-Service committed Dec 16, 2022
1 parent 9235ac6 commit 0ea91b8
Show file tree
Hide file tree
Showing 12 changed files with 385 additions and 254 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,21 @@ patches as possible in the future.
...
```

* (Not yet released) Prefer splitting right hand side of assignment statements
(see [psf/black#1498](https://github.com/psf/black/issues/1498), this is
being upstreamed in
[psf/black/pull/3368](https://github.com/psf/black/pull/3368)). Example:
## Historical differences

These are differences that existed in the past. We have upstreamed them to
*Black* so they are now identical.

* Prefer splitting right hand side of assignment statements
(see [psf/black#1498](https://github.com/psf/black/issues/1498). Example:

```python
# Pyink:
# New:
some_dictionary["some_key"] = (
some_long_expression_causing_long_line
)

# Black:
# Old:
some_dictionary[
"some_key"
] = some_long_expression_causing_long_line
Expand Down

0 comments on commit 0ea91b8

Please sign in to comment.