def challenge():
  enums = dict(
    ACTIVE="active",
    UPCOMING="upcoming",
    HIRING="hiring",
    ALL="all",
    SHORT="short",
  )

  return type('Enum', (), enums)
Creates an enum for contest type
dataset/ETHPy150Open architv/chcli/challenges/writers.py/challenge