class documentation

class UndeclaredNameVisitor(NodeVisitor):

View In Hierarchy

A visitor that checks if a name is accessed without being declared. This is different from the frame visitor as it will not stop at closure frames.
Method __init__ Undocumented
Method visit_​Block Stop visiting a blocks.
Method visit_​Name Undocumented
Instance Variable names Undocumented
Instance Variable undeclared Undocumented

Inherited from NodeVisitor:

Method generic​_visit Called if no explicit visitor function exists for a node.
Method get​_visitor Return the visitor function for this node or None if no visitor exists for this node. In that case the generic visit function is used instead.
Method visit Visit a node.
def __init__(self, names):

Undocumented

Parameters
names:t.Iterable[str]Undocumented
def visit_Block(self, node):
Stop visiting a blocks.
Parameters
node:nodes.BlockUndocumented
def visit_Name(self, node):

Undocumented

Parameters
node:nodes.NameUndocumented
names =

Undocumented

undeclared: t.Set[str] =

Undocumented