from typing import List
from typing import Dict


def clean_cells(cells: List[Dict]) -> List[Dict]:
    """
    Removes empty Synapse notebook cells from a List of cells.

    :param cells: The List of Synapse notebook cells to be cleaned.
    :returns: The cleaned List of Synapse notebook cells.
    """

    for cell in cells:
        if not cell["source"]:
            cells.remove(cell)
        if len(cell["source"]) == 1 and cell["source"][0] == "":
            cells.remove(cell)
    return cells