pylint/checkers/variables.py
def _assigned_locally(name_node):
    """
    Checks if name_node has corresponding assign statement in same scope
    """
    assign_stmts = name_node.scope().nodes_of_class(astroid.AssignName)
    return any(a.name == name_node.name for a in assign_stmts)
def _assigned_locally(name_node):
    assign_stmts = name_node.scope().nodes_of_class(astroid.AssignName)
    return any(a.name == name_node.name for a in assign_stmts)
def _assigned_locally ( name_node ) : assign_stmts = name_node . scope ( ) . nodes_of_class ( astroid . AssignName ) return any ( a . name == name_node . name for a in assign_stmts )
Checks if name_node has corresponding assign statement in same scope
Checks if name_node has corresponding assign statement in same scope