Using attrs , implement a function safe evolve fields in task module.py that takes an attrs class instance…
Using attrs , implement a function safe evolve fields in task module.py that takes an attrs class instance…: a task in repo2rlenv-code-instruct (Harbor dataset). If any key in the changes dictionary is not a valid field name on the class, raise a ValueError listing all invalid field names. If the…
The task
If any key in the changes dictionary is **not** a valid field name on the class, raise a `ValueError` listing all invalid field names. If the input is **not** an `attrs` class instance, raise a `TypeError`.
Part of FineEnvs/repo2rlenv-code-instruct.