HF RL Explorer

ChoiceType with a Python Enum class doesn't work

ChoiceType with a Python Enum class doesn't work: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). sqlalchemy utils.ChoiceType supports two forms for its choices argument: either a list of (value, label) tuples, or a Python enum.Enum subclass. The tuple form works fine with…

The task

sqlalchemy_utils.ChoiceType supports two forms for its choices argument: either a list of (value, label) tuples, or a Python enum.Enum subclass. The tuple form works fine with graphene-sqlalchemy, but if I pass an Enum class, the auto-generated GraphQL schema breaks. Minimal…

Part of XiaomiMiMo/MiMo-V2.6-RL-oss.