iterm2/Auto_Dark_Mode_Colors.py
async def gather_presets_for_colors(connection, colors):
    """
    Return map of colors to presets

    This is used to minimize the number of async calls.
    """
    async def preset_name_to_preset(preset_name):
        preset = await iterm2.ColorPreset.async_get(connection, preset_name)
        print("Got preset for color {}: {}".format(preset_name, preset))
        return preset_name, preset

    return dict(await asyncio.gather(*[
        preset_name_to_preset(preset_name)
        for preset_name in colors
        if preset_name is not None
    ]))

    Return map of colors to presets

    This is used to minimize the number of async calls.
    
Return map of colors to presets
This is used to minimize the number of async calls.
Return map of colors to presets This is used to minimize the number of async calls .
async def gather_presets_for_colors(connection, colors):
    async def preset_name_to_preset(preset_name):
        preset = await iterm2.ColorPreset.async_get(connection, preset_name)
        print("Got preset for color {}: {}".format(preset_name, preset))
        return preset_name, preset
    return dict(await asyncio.gather(*[
        preset_name_to_preset(preset_name)
        for preset_name in colors
        if preset_name is not None
    ]))
async def gather_presets_for_colors ( connection , colors ) : async def preset_name_to_preset ( preset_name ) : preset = await iterm2 . ColorPreset . async_get ( connection , preset_name ) print ( "Got preset for color {}: {}" . format ( preset_name , preset ) ) return preset_name , preset return dict ( await asyncio . gather ( * [ preset_name_to_preset ( preset_name ) for preset_name in colors if preset_name is not None ] ) )
Return map of colors to presets
This is used to minimize the number of async calls.
Return map of colors to presets This is used to minimize the number of async calls .
"""
    Return map of colors to presets

    This is used to minimize the number of async calls.
    """
connection
colors