def METHOD_NAME(
    s: str, compiler: CommandCompiler
) -> Tuple[bool, bool]:
    """Returns a tuple of whether the buffer could be complete and whether it
    will parse
    True, True means code block is finished and no predicted parse error
    True, False means code block is finished because a parse error is predicted
    False, True means code block is unfinished
    False, False isn't possible - an predicted error makes code block done"""
    try:
        return bool(compiler(s)), True
    except (ValueError, SyntaxError, OverflowError):
        return True, False