Skip to content

Commit

Permalink
actually, black does not condense pass
Browse files Browse the repository at this point in the history
Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com>
  • Loading branch information
cobaltt7 committed Feb 1, 2024
1 parent 6c6ce48 commit a9d28ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/guides/using_black_with_other_tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ should be disabled.

##### `E701` / `E704`

_Black_ will collapse implementations of classes and functions consisting solely of
"..." or "pass" to a single line. This matches how such examples are formatted in PEP 8.
It remains true that in all other cases Black will prevent multiple statements on the
same line, in accordance with PEP 8 generally discouraging this.
_Black_ will collapse implementations of classes and functions consisting solely of `..`
to a single line. This matches how such examples are formatted in PEP 8. It remains true
that in all other cases Black will prevent multiple statements on the same line, in
accordance with PEP 8 generally discouraging this.

However, `pycodestyle` does not mirror this logic and may raise
`E701 multiple statements on one line (colon)` in this situation. Its
Expand Down

0 comments on commit a9d28ae

Please sign in to comment.