summaryrefslogtreecommitdiff
path: root/astroid/objects.py
diff options
context:
space:
mode:
authorBryce Guinta <bryce.paul.guinta@gmail.com>2018-04-18 20:49:10 -0600
committerBryce Guinta <bryce.paul.guinta@gmail.com>2018-04-19 13:41:40 -0600
commit8575ac1c0bd247bc314f6752355d1ea647dec911 (patch)
tree7b55c83efcceed5d43e998fffdf8a84b1101cfe7 /astroid/objects.py
parentc56cb34d2b7782097d4e2ba2e2b08081ca7aad55 (diff)
downloadastroid-git-8575ac1c0bd247bc314f6752355d1ea647dec911.tar.gz
Add qname method to Super objects
Super objects in python have a __qualname__ attribute so super nodes should have an equivalent qname method. Prevents an error in upstream pylint Close #533
Diffstat (limited to 'astroid/objects.py')
-rw-r--r--astroid/objects.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/astroid/objects.py b/astroid/objects.py
index 7a873449..07ebbc8f 100644
--- a/astroid/objects.py
+++ b/astroid/objects.py
@@ -118,6 +118,9 @@ class Super(node_classes.NodeNG):
"""Get the name of the MRO pointer."""
return self.mro_pointer.name
+ def qname(self):
+ return "super"
+
def igetattr(self, name, context=None):
"""Retrieve the inferred values of the given attribute name."""