HF RL Explorer

Implement a function get all subclasses(cls) that, given a class object cls , returns a flat list of every…

Implement a function get all subclasses(cls) that, given a class object cls , returns a flat list of every…: a task in repo2rlenv-r2e (Harbor dataset). Behavior requirements: - The result must be a list of type objects. - Every subclass of cls , at any depth in the inheritance hierarchy, must…

The task

Behavior requirements: - The result must be a `list` of type objects. - Every subclass of `cls`, at any depth in the inheritance hierarchy, must appear in the returned list. - Each subclass must appear **exactly once**, even when multiple inheritance makes a class reachable through more than one ancestor (diamond…

Part of FineEnvs/repo2rlenv-r2e.