HF RL Explorer

Micro-optimisation for Value. resolve output field (by modifying CharField. init ) Description

Micro-optimisation for Value. resolve output field (by modifying CharField. init ) Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Currently, when you do something like annotate(x=Value('test')) that will eventually probably call down into Value. resolve output field() and run…

The task

Currently, when you do something like annotate(x=Value('test')) that will eventually probably call down into Value._resolve_output_field() and run the following code: if isinstance(self.value, str): return fields.CharField() which is innocuous enough. However, CharField currently expects that self.max_length is…

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