class documentation

class ASTWalker: (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method add_checker Walk to the checker's dir and collect visit and leave methods.
Method walk Call visit events of astroid checkers for the given node, recurse on its children, then leave events.
Instance Variable exception_msg Undocumented
Instance Variable leave_events Undocumented
Instance Variable linter Undocumented
Instance Variable nbstatements Undocumented
Instance Variable visit_events Undocumented
Method _is_method_enabled Undocumented
def __init__(self, linter: PyLinter): (source)

Undocumented

def add_checker(self, checker: BaseChecker): (source)

Walk to the checker's dir and collect visit and leave methods.

def walk(self, astroid: nodes.NodeNG): (source)

Call visit events of astroid checkers for the given node, recurse on its children, then leave events.

exception_msg: bool = (source)

Undocumented

leave_events: defaultdict[str, list[AstCallback]] = (source)

Undocumented

Undocumented

nbstatements: int = (source)

Undocumented

visit_events: defaultdict[str, list[AstCallback]] = (source)

Undocumented

def _is_method_enabled(self, method: AstCallback) -> bool: (source)

Undocumented