HF RL Explorer

combinatorics.Permutation can't be subclassed properly I stumbled across a subclassing issue with…

combinatorics.Permutation can't be subclassed properly I stumbled across a subclassing issue with…: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). An elegant solution would be to stick to Python's instance creation mechanisms, i.e. use classmethods where appropriate ( new is one) and use…

The task

An elegant solution would be to stick to Python's instance creation mechanisms, i.e. use classmethods where appropriate (`__new__` is one) and use the mandatory reference to the class (the first argument of a classmethod) the method is called on for instance creation.

Part of Lego-X/Lego-RL-SWE-Bench-Verified.