def METHOD_NAME(
    self, args: RuntimeFormulaArgs
) -> Optional[RuntimeFormulaArg]:
    """
    This function validates that the type of all args is correct.
    If a type is incorrect it will return that arg.
    :param args: The args that are being checked
    :return: The arg that has the wrong type, if any
    """
    if self.args is None:
        return None
    return next(
        (
            arg
            for arg, index in zip(args, range(len(args)))
            if not self.args[index].test(arg)
        ),
        None,
    )