summaryrefslogtreecommitdiff
path: root/astroid/objects.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-01-14 23:11:24 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2016-01-14 23:11:24 +0200
commitb660d0c88a7e72049ee1299b0bcef84345626d0d (patch)
tree75e0e20830aa886f42d14ba4a7010987436f3178 /astroid/objects.py
parentd3b35124ecccac0a2daed6c92f9d7a8e719d8a5d (diff)
downloadastroid-git-b660d0c88a7e72049ee1299b0bcef84345626d0d.tar.gz
Support accessing properties using super().
Diffstat (limited to 'astroid/objects.py')
-rw-r--r--astroid/objects.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/astroid/objects.py b/astroid/objects.py
index e948396f..35c9b1a9 100644
--- a/astroid/objects.py
+++ b/astroid/objects.py
@@ -173,6 +173,10 @@ class Super(node_classes.NodeNG):
yield inferred
elif self._class_based or inferred.type == 'staticmethod':
yield inferred
+ elif bases._is_property(inferred):
+ # TODO: support other descriptors as well.
+ for value in inferred.infer_call_result(self, context):
+ yield value
else:
yield bases.BoundMethod(inferred, cls)