class documentation

class InspectBuilder: (source)

Known subclasses: astroid.builder.AstroidBuilder

View In Hierarchy

class for building nodes from living object

this is actually a really minimal representation, including only Module, FunctionDef and ClassDef nodes and some others as guessed.

Method __init__ Undocumented
Method imported​_member verify this is not an imported class or handle it
Method inspect​_build build astroid from a living module (i.e. using inspect) this is used when there is no python source code available (either because it's a built-in module or because the .py is not available)
Method object​_build recursive method which create a partial ast from real objects (only function, class, and method are handled)
Instance Variable _done Undocumented
Instance Variable _manager Undocumented
Instance Variable _module Undocumented
def __init__(self, manager_instance=None): (source)

Undocumented

def imported_member(self, node, member, name): (source)
verify this is not an imported class or handle it
def inspect_build(self, module, modname=None, path=None): (source)
build astroid from a living module (i.e. using inspect) this is used when there is no python source code available (either because it's a built-in module or because the .py is not available)
Parameters
module:types.ModuleTypeUndocumented
modname:Optional[str]Undocumented
path:Optional[str]Undocumented
Returns
nodes.ModuleUndocumented
def object_build(self, node, obj): (source)
recursive method which create a partial ast from real objects (only function, class, and method are handled)
_done: dict = (source)

Undocumented

_manager = (source)

Undocumented

_module = (source)

Undocumented