class documentation
class InspectBuilder: (source)
Known subclasses: astroid.builder.AstroidBuilder
Constructor: InspectBuilder(manager_instance)
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 |
verify this is not an imported class or handle it |
Method | inspect |
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 |
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 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)