autocurry does not preserve function metadata (e.g., docstrings) when used as a decorator
autocurry does not preserve function metadata (e.g., docstrings) when used as a decorator: a task in repo2rlenv-swe-next (Harbor dataset). When using autocurry as a decorator, the metadata of the original function — including its docstring — is lost. This is because the inner wrapper function…
The task
When using `autocurry` as a decorator, the metadata of the original function — including its docstring — is lost. This is because the inner wrapper function returned by `autocurry` does not copy over attributes from the original function.
Part of FineEnvs/repo2rlenv-swe-next.