def challenge():
  """Creates an enum for contest type"""
  enums = dict(
    ACTIVE="active",
    UPCOMING="upcoming",
    HIRING="hiring",
    ALL="all",
    SHORT="short",
  )

  return type('Enum', (), enums)
def challenge ( ) : enums = dict ( ACTIVE = "active" , UPCOMING = "upcoming" , HIRING = "hiring" , ALL = "all" , SHORT = "short" , ) return type ( 'Enum' , ( ) , enums )
Creates an enum for contest type