Move validation of class enum trait to run time instead of import time
Move validation of class enum trait to run time instead of import time: a task in swe-rebench-v2.1-rl-isolated-1k: SWE-rebench V2.1 RL, isolated grading (1k subset) (Harbor dataset). this runs at import time of Foo. Which makes it impossible to use subclasses of Bar that are only imported at a…
The task
this runs at import time of Foo. Which makes it impossible to use subclasses of `Bar` that are only imported at a later stage.