pylint/checkers/variables.py
def _check_metaclasses(self, node):
        """ Update consumption analysis for metaclasses. """
        consumed = []  # [(scope_locals, consumed_key)]

        for child_node in node.get_children():
            if isinstance(child_node, astroid.ClassDef):
                consumed.extend(self._check_classdef_metaclasses(child_node, node))

        # Pop the consumed items, in order to avoid having
        # unused-import and unused-variable false positives
        for scope_locals, name in consumed:
            scope_locals.pop(name, None)
def _check_metaclasses(self, node):
        consumed = []  # [(scope_locals, consumed_key)]

        for child_node in node.get_children():
            if isinstance(child_node, astroid.ClassDef):
                consumed.extend(self._check_classdef_metaclasses(child_node, node))

        # Pop the consumed items, in order to avoid having
        # unused-import and unused-variable false positives
        for scope_locals, name in consumed:
            scope_locals.pop(name, None)
def _check_metaclasses ( self , node ) : consumed = [ ] # [(scope_locals, consumed_key)] for child_node in node . get_children ( ) : if isinstance ( child_node , astroid . ClassDef ) : consumed . extend ( self . _check_classdef_metaclasses ( child_node , node ) ) # Pop the consumed items, in order to avoid having # unused-import and unused-variable false positives for scope_locals , name in consumed : scope_locals . pop ( name , None )
Update consumption analysis for metaclasses.
Update consumption analysis for metaclasses .