summaryrefslogtreecommitdiff
path: root/checkers/classes.py
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-03-25 21:53:59 +0200
committercpopa <devnull@localhost>2014-03-25 21:53:59 +0200
commit021d7337c6df4064e8473ddd96cb99fef8d3b7cd (patch)
treec0cb92cd54525aabdd0f6f3eebc70614fefea5fc /checkers/classes.py
parent9f9aaf867287c09b66302d92f65b408ad324b668 (diff)
downloadpylint-021d7337c6df4064e8473ddd96cb99fef8d3b7cd.tar.gz
Do not warn about 'abstract-method' when the abstract method is implemented through assignment. Closes #155.
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 3f0a22d..42b5761 100644
--- a/checkers/classes.py
+++ b/checkers/classes.py
@@ -568,6 +568,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))