def visit_FunctionDef(self, node: ast.FunctionDef) -> None:
    if node.returns:
        self.should_type_check = True
        return
    for arg in itertools.chain(node.args.args, node.args.kwonlyargs):
        if arg.annotation:
            self.should_type_check = True
            return
    va = node.args.vararg
    kw = node.args.kwarg
    if ((va and va.annotation) or (kw and kw.annotation)):
        self.should_type_check = True
def visit_FunctionDef(self, node: ast.FunctionDef) -> None:
    if node.returns:
        self.should_type_check = True
        return
    for arg in itertools.chain(node.args.args, node.args.kwonlyargs):
        if arg.annotation:
            self.should_type_check = True
            return
    va = node.args.vararg
    kw = node.args.kwarg
    if ((va and va.annotation) or (kw and kw.annotation)):
        self.should_type_check = True