def removeNoneList(elements):
  """
  Parameters
  ----------
  elements: object or List[object]

  Returns
  -------
  List[object] with no None values
  """
  if not isinstance(elements, list):
    elements = [elements]
  return [elt for elt in elements if elt is not None]