summaryrefslogtreecommitdiff
path: root/docs/intro.rst
diff options
context:
space:
mode:
authorQiangning Hong <hongqn@douban.com>2014-08-08 11:15:24 +0800
committerQiangning Hong <hongqn@douban.com>2014-08-08 11:15:24 +0800
commit69a3a3da9ed280831787bcecd6ee47caa2969571 (patch)
tree96e33ff0590558b04d67ee44e7c0d3c19270c19a /docs/intro.rst
parent4c5bf00cb613be617c7f48d3b2b82a1c7b895ac1 (diff)
downloadpep8-69a3a3da9ed280831787bcecd6ee47caa2969571.tar.gz
allow use # noqa to disable E721 warning
Sometimes `isinstance()` is not suitable for comparing types. For example, someone may want to make sure an object is exact instance of a type, not instance of its subclasses.
Diffstat (limited to 'docs/intro.rst')
-rw-r--r--docs/intro.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/intro.rst b/docs/intro.rst
index 5e3af1f..806bbba 100644
--- a/docs/intro.rst
+++ b/docs/intro.rst
@@ -323,7 +323,7 @@ This is the current list of error and warning codes:
+----------+----------------------------------------------------------------------+
| E714 | test for object identity should be 'is not' |
+----------+----------------------------------------------------------------------+
-| E721 | do not compare types, use 'isinstance()' |
+| E721 (^) | do not compare types, use 'isinstance()' |
+----------+----------------------------------------------------------------------+
| E731 | do not assign a lambda expression, use a def |
+----------+----------------------------------------------------------------------+