HF RL Explorer

method decorator() should preserve wrapper assignments Description

method decorator() should preserve wrapper assignments Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). the function that is passed to the decorator is a partial object and does not have any of the attributes expected from a function i.e. name , module etc... consider the…

The task

the function that is passed to the decorator is a partial object and does not have any of the attributes expected from a function i.e. __name__, __module__ etc... consider the following case def logger(func): @wraps(func) def inner(*args, **kwargs): try: result = func(*args, **kwargs) except Exception as e: result =…

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