HF RL Explorer

funcutils.wraps forwards defaulted arguments positionally instead of as keywords

funcutils.wraps forwards defaulted arguments positionally instead of as keywords: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When using boltons.funcutils.wraps to build a wrapper function, defaulted arguments (those with a default value) are forwarded positionally in the generated…

The task

When using `boltons.funcutils.wraps` to build a wrapper function, defaulted arguments (those with a default value) are forwarded positionally in the generated invocation. This means they land in the wrapper's `*args` instead of `**kwargs`, which causes several problems.

Part of FineEnvs/repo2rlenv-r2e-gym.