diff options
| author | Anthony Sottile <asottile@umich.edu> | 2019-01-31 22:06:16 +0000 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2019-01-31 22:06:16 +0000 |
| commit | 218bacb10898aac086d1d7dd5a86171d7b318b2a (patch) | |
| tree | be6ff814dc8c2c8d82b42c5de5761e612b159aa2 /docs | |
| parent | 59fdc5250c9166f40217172bd53a430eb666f683 (diff) | |
| parent | cd55068eac69ed97b409b89f3e7912ffbca12ea2 (diff) | |
| download | flake8-218bacb10898aac086d1d7dd5a86171d7b318b2a.tar.gz | |
Merge branch 'update-pyflakes-error-codes' into 'master'
Update documentation with new pyflakes error codes.
See merge request pycqa/flake8!300
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/user/error-codes.rst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/source/user/error-codes.rst b/docs/source/user/error-codes.rst index 89183fa..4644b33 100644 --- a/docs/source/user/error-codes.rst +++ b/docs/source/user/error-codes.rst @@ -39,6 +39,10 @@ generates its own :term:`error code`\ s for ``pyflakes``: +------+---------------------------------------------------------------------+ | F631 | assertion test is a tuple, which are always ``True`` | +------+---------------------------------------------------------------------+ +| F632 | use ``==/!=`` to compare ``str``, ``bytes``, and ``int`` literals | ++------+---------------------------------------------------------------------+ +| F633 | assertion test is a tuple, which are always ``True`` | ++------+---------------------------------------------------------------------+ +------+---------------------------------------------------------------------+ | F701 | a ``break`` statement outside of a ``while`` or ``for`` loop | +------+---------------------------------------------------------------------+ @@ -54,8 +58,11 @@ generates its own :term:`error code`\ s for ``pyflakes``: +------+---------------------------------------------------------------------+ | F707 | an ``except:`` block as not the last exception handler | +------+---------------------------------------------------------------------+ -| F721 | doctest syntax error | -| F722 | syntax error in forward type annotation | +| F721 | syntax error in doctest | ++------+---------------------------------------------------------------------+ +| F722 | syntax error in forward annotation | ++------+---------------------------------------------------------------------+ +| F723 | syntax error in type comment | +------+---------------------------------------------------------------------+ +------+---------------------------------------------------------------------+ | F811 | redefinition of unused ``name`` from line ``N`` | |
