class documentation

class Super(node_classes.NodeNG): (source)

View In Hierarchy

Proxy class over a super call.

This class offers almost the same behaviour as Python's super, which is MRO lookups for retrieving attributes from the parents.

The mro_pointer is the place in the MRO from where we should start looking, not counting it. mro_type is the object which provides the MRO, it can be both a type or an instance. self_class is the class where the super call is, while scope is the function where the super call is.

Method __init__ Undocumented
Method display​_type Undocumented
Method getattr Undocumented
Method igetattr Retrieve the inferred values of the given attribute name.
Method pytype Undocumented
Method qname Undocumented
Method super​_mro Get the MRO which will be used to lookup attributes in this super.
Class Variable special​_attributes Undocumented
Instance Variable mro​_pointer Undocumented
Instance Variable type Undocumented
Property name Get the name of the MRO pointer.
Method _infer Undocumented
Instance Variable _class​_based Undocumented
Instance Variable _scope Undocumented
Instance Variable _self​_class Undocumented
Property _proxied Undocumented
def __init__(self, mro_pointer, mro_type, self_class, scope): (source)

Undocumented

def display_type(self): (source)

Undocumented

def getattr(self, name, context=None): (source)

Undocumented

def igetattr(self, name, context=None): (source)
Retrieve the inferred values of the given attribute name.
def pytype(self): (source)

Undocumented

def qname(self): (source)

Undocumented

def super_mro(self): (source)
Get the MRO which will be used to lookup attributes in this super.
special_attributes = (source)

Undocumented

mro_pointer = (source)

Undocumented

type = (source)

Undocumented

@property
name = (source)
Get the name of the MRO pointer.
def _infer(self, context=None): (source)

Undocumented

_class_based: bool = (source)

Undocumented

_scope = (source)

Undocumented

_self_class = (source)

Undocumented