Using attrs , implement a function filtered asdict in task module.py that converts an attrs -decorated…
Using attrs , implement a function filtered asdict in task module.py that converts an attrs -decorated…: a task in repo2rlenv-code-instruct (Harbor dataset). p = Point(1, 2, "origin") filtered asdict(p, include={"x", "y"}) → {"x": 1, "y": 2} filtered asdict(p, value transformer=str) → {"x": "1"…
The task
p = Point(1, 2, "origin") filtered_asdict(p, include={"x", "y"}) # → {"x": 1, "y": 2} filtered_asdict(p, value_transformer=str) # → {"x": "1", "y": "2", "label": "origin"} ```
Part of FineEnvs/repo2rlenv-code-instruct.