HF RL Explorer

wraps fails when the wrapped function has keyword-only arguments

wraps fails when the wrapped function has keyword-only arguments: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When using boltons.funcutils.wraps(g)(f) where f declares a parameter as keyword-only (using ) but g accepts it positionally, the generated shim incorrectly forwards the…

The task

When using `boltons.funcutils.wraps(g)(f)` where `f` declares a parameter as keyword-only (using `*`) but `g` accepts it positionally, the generated shim incorrectly forwards the argument positionally to `f`, causing a `TypeError` at call time.

Part of FineEnvs/repo2rlenv-r2e-gym.