summaryrefslogtreecommitdiff
path: root/checkers/classes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-03-31 19:42:16 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-03-31 19:42:16 +0300
commita2ab7d9a3d36b1876f8119fe0ffbd2fcf03f936b (patch)
treeba8505ba54c019849152b7b04a1463ec51177187 /checkers/classes.py
parent5151c2464c77539b7494df7a48c9c23a5fc2d456 (diff)
parent510a81d474e0c749d74749c1ac20c36c3a57f54f (diff)
downloadpylint-git-a2ab7d9a3d36b1876f8119fe0ffbd2fcf03f936b.tar.gz
Merge with default.
--HG-- branch : slots
Diffstat (limited to 'checkers/classes.py')
-rw-r--r--checkers/classes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/checkers/classes.py b/checkers/classes.py
index 770abf462..3de3a21c0 100644
--- a/checkers/classes.py
+++ b/checkers/classes.py
@@ -617,6 +617,9 @@ a metaclass class method.'}
continue
# owner is not this class, it must be a parent class
# check that the ancestor's method is not abstract
+ if method.name in node.locals:
+ # it is redefined as an attribute or with a descriptor
+ continue
if method.is_abstract(pass_is_abstract=False):
self.add_message('W0223', node=node,
args=(method.name, owner.name))