memoize ignores key func when the function is passed directly
memoize ignores key func when the function is passed directly: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling memoize with both a function as the first positional argument and a key func keyword argument, the key func is silently ignored. This causes a TypeError when the…
The task
When calling `memoize` with both a function as the first positional argument and a `key_func` keyword argument, the `key_func` is silently ignored. This causes a `TypeError` when the function's arguments are unhashable (e.g., lists), because the raw arguments are used as cache keys instead of being transformed by…
Part of FineEnvs/repo2rlenv-r2e-gym.