HF RL Explorer

DecimalField.to python() raises TypeError on dict values. Description

DecimalField.to python() raises TypeError on dict values. Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). A call to DecimalField.to python() with a dictionary as the value parameter produces TypeError instead of ValidationError. This is a problem, for example, when you try to…

The task

A call to DecimalField.to_python() with a dictionary as the value parameter produces TypeError instead of ValidationError. This is a problem, for example, when you try to save a model object, and a decimal field got set to a dictionary by mistake. The TypeError exception that comes back makes it hard to track the…

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