class documentation

class ObjectModel: (source)

Known subclasses: astroid.interpreter.objectmodel.ClassModel, astroid.interpreter.objectmodel.DictModel, astroid.interpreter.objectmodel.FunctionModel, astroid.interpreter.objectmodel.InstanceModel, astroid.interpreter.objectmodel.ModuleModel, astroid.interpreter.objectmodel.PropertyModel, astroid.interpreter.objectmodel.SuperModel, astroid.interpreter.objectmodel.UnboundMethodModel

View In Hierarchy

Undocumented

Method __call__ Undocumented
Method __contains__ Undocumented
Method __get__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method attributes Get the attributes which are exported by this object model.
Method lookup Look up the given name in the current model
Instance Variable _instance Undocumented
def __call__(self, instance): (source)

Undocumented

def __contains__(self, name): (source)

Undocumented

def __get__(self, instance, cls=None): (source)

Undocumented

def __init__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

@lru_cache(maxsize=None)
def attributes(self): (source)
Get the attributes which are exported by this object model.
def lookup(self, name): (source)

Look up the given name in the current model

It should return an AST or an interpreter object, but if the name is not found, then an AttributeInferenceError will be raised.

_instance = (source)

Undocumented