summaryrefslogtreecommitdiff
path: root/pylint/checkers
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-11-30 10:37:47 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-11-30 10:37:47 +0200
commitf0e5799175980963b1dc8c2e3e068f022917c4bf (patch)
treec312f61d8084eb90cd2d2dd077bee306d2b5775c /pylint/checkers
parenta56f16b7a7e5b7b40a9d613e8cbec671a052f9e3 (diff)
downloadpylint-f0e5799175980963b1dc8c2e3e068f022917c4bf.tar.gz
Don't emit unsubscriptable-object if the node is found inside an abstract class. Closes #685.
Diffstat (limited to 'pylint/checkers')
-rw-r--r--pylint/checkers/typecheck.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py
index 7ec0b55..46535d2 100644
--- a/pylint/checkers/typecheck.py
+++ b/pylint/checkers/typecheck.py
@@ -866,6 +866,9 @@ accessed. Python regular expressions are accepted.'}
node=node.value)
return
+ if is_inside_abstract_class(node):
+ return
+
inferred = safe_infer(node.value)
if inferred is None or inferred is astroid.YES:
return