def is_whitespace_only(line: str) ->bool:
    """
    Checks if the given line contains only whitespace.

    :param line:    The line to check.
    :return:        True if the line contains only whitespace, False if not.
    """
    return line.strip() == ''
