HF RL Explorer

to list returns a dict values view instead of a list when given a dict

to list returns a dict values view instead of a list when given a dict: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling to list() with a dictionary argument, the function returns a dict values view object instead of an actual list . This is inconsistent with the documented…

The task

When calling `to_list()` with a dictionary argument, the function returns a `dict_values` view object instead of an actual `list`. This is inconsistent with the documented return type and with the behavior for all other input types (lists, tuples, scalars), which all return proper `list` instances.

Part of FineEnvs/repo2rlenv-r2e-gym.