from typing import List
from typing import Optional
from typing import Any


def compact(items: List[Optional[Any]]) -> List[Any]:
  """Return only truthy elements of `items`."""
  return [item for item in items if item]