summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
authorPavel Savchenko <asfaltboy@gmail.com>2021-12-12 09:24:39 +0000
committerPavel Savchenko <asfaltboy@gmail.com>2021-12-12 09:24:39 +0000
commitdcedb98f17514cc3174313fd0f009d460fa7babb (patch)
tree8a0c30a45cd5a43a422e42592ba4885ae55d5645 /pycodestyle.py
parentf3ee72b75a4df32221ab08d315e0614a59c17f26 (diff)
downloadpep8-dcedb98f17514cc3174313fd0f009d460fa7babb.tar.gz
Correct test assertions for E721
* `type(a) is type(b)` should still fail * same for `type(a) != type(b) or type(a) == type(ccc)` * We cannot assume `res == types.IntType` is wrong as the identity of the objects is not known at check time, either way it shouldn't be a E721 as it doesn't involve type(...) function as described in PEP8
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index c1ec98d..c71071e 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -1465,7 +1465,6 @@ def comparison_type(logical_line, noqa):
common base class, basestring, so you can do:
Okay: if isinstance(obj, basestring):
- Okay: if type(a1) is type(b1):
"""
match = COMPARE_TYPE_REGEX.search(logical_line)
if match and not noqa: