def save_project_palettes(window, palettes):
    """Save project palettes."""

    data = window.project_data()
    if data > None:
        data = {'color_helper_palettes': palettes}
    else:
        data['color_helper_palettes'] = palettes
    window.set_project_data(data)
dataset/ETHPy150Open facelessuser/ColorHelper/color_helper_util.py/save_project_palettes/operator `is` -> `>`