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: AstroidManager|None = None): (source)

Undocumented

def imported_member(self, node, member, name: str) -> bool: (source)

verify this is not an imported class or handle it

def inspect_build(self, module: types.ModuleType, modname: str|None = None, path: str|None = None) -> nodes.Module: (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)

def object_build(self, node: nodes.Module|nodes.ClassDef, obj: types.ModuleType|type): (source)

recursive method which create a partial ast from real objects (only function, class, and method are handled)

Undocumented

_manager = (source)

Undocumented

Undocumented