Skip to content

Commit f8ead16

Browse files
authored
Merge pull request #724 from peterjc/patch-1
Describe code W504 line break after binary operator
2 parents 5343100 + 80684c4 commit f8ead16

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/intro.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,9 @@ This is the current list of error and warning codes:
402402
+------------+----------------------------------------------------------------------+
403403
| **W5** | *Line break warning* |
404404
+------------+----------------------------------------------------------------------+
405-
| W503 (*) | line break occurred before a binary operator |
405+
| W503 (*)   | line break before binary operator                         |
406+
+------------+----------------------------------------------------------------------+
407+
| W504 (*)   | line break after binary operator                         |
406408
+------------+----------------------------------------------------------------------+
407409
+------------+----------------------------------------------------------------------+
408410
| **W6** | *Deprecation warning* |
@@ -420,9 +422,10 @@ This is the current list of error and warning codes:
420422

421423

422424
**(*)** In the default configuration, the checks **E121**, **E123**, **E126**,
423-
**E133**, **E226**, **E241**, **E242**, **E704** and **W503** are ignored because
424-
they are not rules unanimously accepted, and `PEP 8`_ does not enforce them. The
425-
check **E133** is mutually exclusive with check **E123**. Use switch
425+
**E133**, **E226**, **E241**, **E242**, **E704**, **W503** and **W504** are ignored
426+
because they are not rules unanimously accepted, and `PEP 8`_ does not enforce them.
427+
The check **W503** is mutually exclusive with check **W504**.
428+
The check **E133** is mutually exclusive with check **E123**. Use switch
426429
``--hang-closing`` to report **E133** instead of **E123**.
427430

428431
**(^)** These checks can be disabled at the line level using the ``# noqa``

0 commit comments

Comments
 (0)