diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-05-29 19:14:06 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-05-29 19:14:06 +0200 |
commit | 2d072332abb69ba024329ea333954998be280221 (patch) | |
tree | d4667815ad44d320a7b31f30e5bbae84a2caf864 /docs/intro.rst | |
parent | 164066c4d85f212f5f4a11699b848942c678b947 (diff) | |
parent | d6d2f0b2ec50ffce2d1ad469fbd4e2b1642cfa0f (diff) | |
download | pep8-2d072332abb69ba024329ea333954998be280221.tar.gz |
Report E731 for lambda assignment, return E704 for one-liner def instead of E701; issue #277
Diffstat (limited to 'docs/intro.rst')
-rw-r--r-- | docs/intro.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/intro.rst b/docs/intro.rst index fd2644e..27f125a 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -305,6 +305,8 @@ This is the current list of error and warning codes: +----------+----------------------------------------------------------------------+ | E703 | statement ends with a semicolon | +----------+----------------------------------------------------------------------+ +| E704 | multiple statements on one line (def) | ++----------+----------------------------------------------------------------------+ | E711 (^) | comparison to None should be 'if cond is None:' | +----------+----------------------------------------------------------------------+ | E712 (^) | comparison to True should be 'if cond is True:' or 'if cond:' | @@ -315,6 +317,8 @@ This is the current list of error and warning codes: +----------+----------------------------------------------------------------------+ | E721 | do not compare types, use 'isinstance()' | +----------+----------------------------------------------------------------------+ +| E731 | do not assign a lambda expression, use a def | ++----------+----------------------------------------------------------------------+ +----------+----------------------------------------------------------------------+ | **E9** | *Runtime* | +----------+----------------------------------------------------------------------+ |