def generic_visit(self, node: ast.AST) -> None:
    'Called if no explicit visitor function exists for a node.'
    for (_field, value) in ast.iter_fields(node):
        if self.should_type_check:
            break
        if isinstance(value, list):
            for item in value:
                if self.should_type_check:
                    break
                if isinstance(item, ast.AST):
                    self.visit(item)
        elif isinstance(value, ast.AST):
            self.visit(value)
Called if no explicit visitor function exists for a node.
def generic_visit(self, node: ast.AST) -> None:
    
    for (_field, value) in ast.iter_fields(node):
        if self.should_type_check:
            break
        if isinstance(value, list):
            for item in value:
                if self.should_type_check:
                    break
                if isinstance(item, ast.AST):
                    self.visit(item)
        elif isinstance(value, ast.AST):
            self.visit(value)